This allows the use of a call back class to decide whether to stop. More...
#include <CbcSolver.hpp>
Public Member Functions | |
Decision methods | |
virtual int | callBack (CbcModel *currentSolver, int whereFrom) |
Import - 0 if good. | |
Constructors and destructors etc | |
CbcStopNow () | |
Default Constructor. | |
CbcStopNow (const CbcStopNow &rhs) | |
Copy constructor . | |
CbcStopNow & | operator= (const CbcStopNow &rhs) |
Assignment operator. | |
virtual CbcStopNow * | clone () const |
Clone. | |
virtual | ~CbcStopNow () |
Destructor. |
This allows the use of a call back class to decide whether to stop.
Definition at line 282 of file CbcSolver.hpp.
CbcStopNow::CbcStopNow | ( | ) |
Default Constructor.
CbcStopNow::CbcStopNow | ( | const CbcStopNow & | rhs | ) |
Copy constructor .
virtual CbcStopNow::~CbcStopNow | ( | ) | [virtual] |
Destructor.
virtual int CbcStopNow::callBack | ( | CbcModel * | currentSolver, | |
int | whereFrom | |||
) | [inline, virtual] |
Import - 0 if good.
Meaning of whereFrom: 1 after initial solve by dualsimplex etc 2 after preprocessing 3 just before branchAndBound (so user can override) 4 just after branchAndBound (before postprocessing) 5 after postprocessing 6 after a user called heuristic phase nonzero return code to stop
Definition at line 297 of file CbcSolver.hpp.
CbcStopNow& CbcStopNow::operator= | ( | const CbcStopNow & | rhs | ) |
Assignment operator.
virtual CbcStopNow* CbcStopNow::clone | ( | ) | const [virtual] |
Clone.