Changeset 2494 for trunk


Ignore:
Timestamp:
Feb 17, 2019 12:51:46 PM (4 months ago)
Author:
unxusr
Message:

more functions to Cbc_C_interface

Location:
trunk/Cbc/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/Cbc_C_Interface.cpp

    r2489 r2494  
    17551755}
    17561756
     1757/** returns the maximum number of nodes that can be explored in the search tree
     1758 */
     1759COINLIBAPI int COINLINKAGE
     1760Cbc_getMaximumNodes(Cbc_Model *model)
     1761{
     1762  return model->model_->getMaximumNodes();
     1763}
     1764
     1765/** sets the maximum number of nodes that can be explored in the search tree
     1766 */
     1767COINLIBAPI void COINLINKAGE
     1768Cbc_setMaximumNodes(Cbc_Model *model, int maxNodes)
     1769{
     1770  model->model_->setMaximumNodes(maxNodes);
     1771}
     1772
     1773/** returns solution limit for the search process
     1774 */
     1775COINLIBAPI int COINLINKAGE
     1776Cbc_getMaximumSolutions(Cbc_Model *model)
     1777{
     1778  return model->model_->getMaximumSolutions();
     1779}
     1780
     1781/** sets a solution limit as a stopping criterion
     1782 */
     1783COINLIBAPI void COINLINKAGE
     1784Cbc_setMaximumSolutions(Cbc_Model *model, int maxSolutions)
     1785{
     1786  model->model_->setMaximumSolutions(maxSolutions);
     1787}
     1788
     1789/** returns the current log leven
     1790 */
     1791COINLIBAPI int COINLINKAGE
     1792Cbc_getLogLevel(Cbc_Model *model)
     1793{
     1794  return model->model_->logLevel();
     1795}
     1796
     1797/** sets the log level
     1798 */
     1799COINLIBAPI void COINLINKAGE
     1800Cbc_setLogLevel(Cbc_Model *model, int logLevel)
     1801{
     1802  model->model_->setLogLevel(logLevel);
     1803}
     1804
     1805
     1806
    17571807COINLIBAPI double COINLINKAGE
    17581808Cbc_getCutoff(Cbc_Model* model)
  • trunk/Cbc/src/Cbc_C_Interface.h

    r2488 r2494  
    545545Cbc_setAllowablePercentageGap(Cbc_Model *model, double allowedPercentageGap);
    546546
     547/** returns the maximum number of nodes that can be explored in the search tree
     548 */
     549COINLIBAPI int COINLINKAGE
     550Cbc_getMaximumNodes(Cbc_Model *model);
     551
     552/** sets the maximum number of nodes that can be explored in the search tree
     553 */
     554COINLIBAPI void COINLINKAGE
     555Cbc_setMaximumNodes(Cbc_Model *model, int maxNodes);
     556
     557/** returns solution limit for the search process
     558 */
     559COINLIBAPI int COINLINKAGE
     560Cbc_getMaximumSolutions(Cbc_Model *model);
     561
     562/** sets a solution limit as a stopping criterion
     563 */
     564COINLIBAPI void COINLINKAGE
     565Cbc_setMaximumSolutions(Cbc_Model *model, int maxSolutions);
     566
     567/** returns the current log leven
     568 */
     569COINLIBAPI int COINLINKAGE
     570Cbc_getLogLevel(Cbc_Model *model);
     571
     572/** sets the log level
     573 */
     574COINLIBAPI void COINLINKAGE
     575Cbc_setLogLevel(Cbc_Model *model, int logLevel);
     576
    547577
    548578/** returns the cutoff
Note: See TracChangeset for help on using the changeset viewer.