Changeset 2495


Ignore:
Timestamp:
Feb 18, 2019 8:32:42 AM (8 months ago)
Author:
unxusr
Message:

time limit in C interface

Location:
trunk/Cbc/src
Files:
3 edited

Legend:

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

    r2493 r2495  
    77    \brief Second level routines for the cbc stand-alone solver.
    88*/
     9
    910
    1011#include "CbcConfig.h"
  • trunk/Cbc/src/Cbc_C_Interface.cpp

    r2494 r2495  
    18301830}
    18311831
     1832COINLIBAPI double COINLINKAGE
     1833Cbc_getMaximumSeconds(Cbc_Model *model)
     1834{
     1835  return model->model_->getMaximumSeconds();
     1836}
     1837
     1838COINLIBAPI void COINLINKAGE
     1839Cbc_setMaximumSeconds(Cbc_Model *model, double maxSeconds)
     1840{
     1841  model->model_->setMaximumSeconds(maxSeconds);
     1842}
     1843
    18321844#if defined(__MWERKS__)
    18331845#pragma export off
  • trunk/Cbc/src/Cbc_C_Interface.h

    r2494 r2495  
    545545Cbc_setAllowablePercentageGap(Cbc_Model *model, double allowedPercentageGap);
    546546
     547/** returns the time limit for the search process
     548 */
     549COINLIBAPI double COINLINKAGE
     550Cbc_getMaximumSeconds(Cbc_Model *model);
     551
     552/** sets the time limit for the search process
     553 */
     554COINLIBAPI void COINLINKAGE
     555Cbc_setMaximumSeconds(Cbc_Model *model, double maxSeconds);
     556
     557
    547558/** returns the maximum number of nodes that can be explored in the search tree
    548559 */
Note: See TracChangeset for help on using the changeset viewer.