#include <CbcCompareBase.hpp>
Inheritance diagram for CbcCompareBase:
Public Member Functions | |
CbcCompareBase () | |
virtual bool | newSolution (CbcModel *) |
Reconsider behaviour after discovering a new solution. | |
virtual bool | newSolution (CbcModel *, double, int) |
Reconsider behaviour after discovering a new solution. | |
virtual bool | every1000Nodes (CbcModel *, int) |
virtual bool | fullScan () const |
Returns true if wants code to do scan with alternate criterion NOTE - this is temporarily disabled. | |
virtual | ~CbcCompareBase () |
virtual void | generateCpp (FILE *) |
Create C++ lines to get to current state. | |
CbcCompareBase (const CbcCompareBase &rhs) | |
CbcCompareBase & | operator= (const CbcCompareBase &rhs) |
virtual CbcCompareBase * | clone () const |
Clone. | |
virtual bool | test (CbcNode *, CbcNode *) |
This is test function. | |
virtual bool | alternateTest (CbcNode *x, CbcNode *y) |
This is alternate test function. | |
bool | operator() (CbcNode *x, CbcNode *y) |
bool | equalityTest (CbcNode *x, CbcNode *y) const |
Further test if everything else equal. | |
void | sayThreaded () |
Say threaded. | |
Protected Attributes | |
CbcCompareBase * | test_ |
bool | threaded_ |
Definition at line 25 of file CbcCompareBase.hpp.
CbcCompareBase::CbcCompareBase | ( | ) | [inline] |
Definition at line 28 of file CbcCompareBase.hpp.
virtual CbcCompareBase::~CbcCompareBase | ( | ) | [inline, virtual] |
Definition at line 73 of file CbcCompareBase.hpp.
CbcCompareBase::CbcCompareBase | ( | const CbcCompareBase & | rhs | ) | [inline] |
Definition at line 78 of file CbcCompareBase.hpp.
virtual bool CbcCompareBase::newSolution | ( | CbcModel * | ) | [inline, virtual] |
Reconsider behaviour after discovering a new solution.
This allows any method to change its behaviour. It is called after each solution.
The method should return true if changes are made which will alter the evaluation criteria applied to a node. (So that in cases where the search tree is sorted, it can be properly rebuilt.)
Definition at line 43 of file CbcCompareBase.hpp.
virtual bool CbcCompareBase::newSolution | ( | CbcModel * | , | |
double | , | |||
int | ||||
) | [inline, virtual] |
Reconsider behaviour after discovering a new solution.
This allows any method to change its behaviour. It is called after each solution.
The method should return true if changes are made which will alter the evaluation criteria applied to a node. (So that in cases where the search tree is sorted, it can be properly rebuilt.)
Reimplemented in CbcCompareUser, and CbcCompareDefault.
Definition at line 55 of file CbcCompareBase.hpp.
virtual bool CbcCompareBase::every1000Nodes | ( | CbcModel * | , | |
int | ||||
) | [inline, virtual] |
Reimplemented in CbcCompareUser, and CbcCompareDefault.
Definition at line 62 of file CbcCompareBase.hpp.
virtual bool CbcCompareBase::fullScan | ( | ) | const [inline, virtual] |
Returns true if wants code to do scan with alternate criterion NOTE - this is temporarily disabled.
Reimplemented in CbcCompareUser.
Definition at line 69 of file CbcCompareBase.hpp.
virtual void CbcCompareBase::generateCpp | ( | FILE * | ) | [inline, virtual] |
Create C++ lines to get to current state.
Reimplemented in CbcCompareDefault, CbcCompareDepth, CbcCompareEstimate, and CbcCompareObjective.
Definition at line 75 of file CbcCompareBase.hpp.
CbcCompareBase& CbcCompareBase::operator= | ( | const CbcCompareBase & | rhs | ) | [inline] |
Definition at line 84 of file CbcCompareBase.hpp.
virtual CbcCompareBase* CbcCompareBase::clone | ( | ) | const [inline, virtual] |
Clone.
Reimplemented in CbcCompareUser, CbcCompareDefault, CbcCompareDepth, CbcCompareEstimate, and CbcCompareObjective.
Definition at line 93 of file CbcCompareBase.hpp.
This is test function.
Reimplemented in CbcCompareUser, CbcCompareDefault, CbcCompareDepth, CbcCompareEstimate, and CbcCompareObjective.
Definition at line 99 of file CbcCompareBase.hpp.
This is alternate test function.
Reimplemented in CbcCompareUser.
Definition at line 104 of file CbcCompareBase.hpp.
Definition at line 108 of file CbcCompareBase.hpp.
void CbcCompareBase::sayThreaded | ( | ) | [inline] |
CbcCompareBase* CbcCompareBase::test_ [protected] |
Definition at line 134 of file CbcCompareBase.hpp.
bool CbcCompareBase::threaded_ [protected] |
Definition at line 136 of file CbcCompareBase.hpp.