Bonmin
1.7
|
#include <BonDiver.hpp>
Public Member Functions | |
DiverCompare () | |
virtual | ~DiverCompare () |
DiverCompare (const DiverCompare &rhs) | |
DiverCompare & | operator= (const DiverCompare &rhs) |
virtual CbcCompareBase * | clone () const |
Clone. | |
virtual bool | test (CbcNode *x, CbcNode *y) |
This is test function. | |
virtual bool | newSolution (CbcModel *model) |
Called after each new solution. | |
virtual bool | newSolution (CbcModel *model, double objectiveAtContinuous, int numberInfeasibilitiesAtContinuous) |
Called after each new solution. | |
virtual bool | every1000Nodes (CbcModel *model, int numberNodes) |
Called 1000 nodes. | |
void | setDiver (CbcDfsDiver *diver) |
Set the dfs diver to use. | |
void | setNumberSolToStopDive (int val) |
Set numberSolToStopDive_. | |
void | setNumberNodesToLimitTreeSize (int val) |
Set numberNodesToLimitTreeSize_. | |
void | setComparisonDive (const CbcCompareBase &val) |
Set comparison method when diving. | |
void | setComparisonBound (const CbcCompareBase &val) |
Set comparison method when closing bound. | |
Private Attributes | |
CbcDfsDiver * | diver_ |
Pointer to the CbcDfsDiver handling the tree. | |
int | numberSolToStopDive_ |
Number of solution before we command diver_ to stop diving. | |
int | numberNodesToLimitTreeSize_ |
Number of nodes before we command diver_ to limit the tree size. | |
CbcCompareBase * | comparisonDive_ |
Comparison method used in diving mode. | |
CbcCompareBase * | comparisonBound_ |
Comparison method used bound mode. | |
CbcCompareDepth | comparisonDepth_ |
Comparison method used when limit tree size. |
Definition at line 309 of file BonDiver.hpp.
Bonmin::DiverCompare::DiverCompare | ( | ) | [inline] |
Definition at line 313 of file BonDiver.hpp.
Referenced by clone().
virtual Bonmin::DiverCompare::~DiverCompare | ( | ) | [inline, virtual] |
Definition at line 323 of file BonDiver.hpp.
References comparisonBound_, and comparisonDive_.
Bonmin::DiverCompare::DiverCompare | ( | const DiverCompare & | rhs | ) | [inline] |
Definition at line 330 of file BonDiver.hpp.
DiverCompare& Bonmin::DiverCompare::operator= | ( | const DiverCompare & | rhs | ) | [inline] |
Definition at line 340 of file BonDiver.hpp.
References comparisonBound_, comparisonDive_, diver_, numberNodesToLimitTreeSize_, and numberSolToStopDive_.
virtual CbcCompareBase* Bonmin::DiverCompare::clone | ( | ) | const [inline, virtual] |
virtual bool Bonmin::DiverCompare::test | ( | CbcNode * | x, |
CbcNode * | y | ||
) | [virtual] |
This is test function.
virtual bool Bonmin::DiverCompare::newSolution | ( | CbcModel * | model | ) | [virtual] |
Called after each new solution.
virtual bool Bonmin::DiverCompare::newSolution | ( | CbcModel * | model, |
double | objectiveAtContinuous, | ||
int | numberInfeasibilitiesAtContinuous | ||
) | [virtual] |
Called after each new solution.
virtual bool Bonmin::DiverCompare::every1000Nodes | ( | CbcModel * | model, |
int | numberNodes | ||
) | [virtual] |
Called 1000 nodes.
Return true if want tree re-sorted.
void Bonmin::DiverCompare::setDiver | ( | CbcDfsDiver * | diver | ) | [inline] |
void Bonmin::DiverCompare::setNumberSolToStopDive | ( | int | val | ) | [inline] |
Set numberSolToStopDive_.
Definition at line 385 of file BonDiver.hpp.
References numberSolToStopDive_.
void Bonmin::DiverCompare::setNumberNodesToLimitTreeSize | ( | int | val | ) | [inline] |
Set numberNodesToLimitTreeSize_.
Definition at line 391 of file BonDiver.hpp.
References numberNodesToLimitTreeSize_.
void Bonmin::DiverCompare::setComparisonDive | ( | const CbcCompareBase & | val | ) | [inline] |
Set comparison method when diving.
Definition at line 397 of file BonDiver.hpp.
References comparisonDive_.
void Bonmin::DiverCompare::setComparisonBound | ( | const CbcCompareBase & | val | ) | [inline] |
Set comparison method when closing bound.
Definition at line 402 of file BonDiver.hpp.
References comparisonBound_.
CbcDfsDiver* Bonmin::DiverCompare::diver_ [private] |
Pointer to the CbcDfsDiver handling the tree.
Definition at line 408 of file BonDiver.hpp.
Referenced by operator=(), and setDiver().
int Bonmin::DiverCompare::numberSolToStopDive_ [private] |
Number of solution before we command diver_ to stop diving.
Definition at line 410 of file BonDiver.hpp.
Referenced by operator=(), and setNumberSolToStopDive().
int Bonmin::DiverCompare::numberNodesToLimitTreeSize_ [private] |
Number of nodes before we command diver_ to limit the tree size.
Definition at line 412 of file BonDiver.hpp.
Referenced by operator=(), and setNumberNodesToLimitTreeSize().
CbcCompareBase* Bonmin::DiverCompare::comparisonDive_ [private] |
Comparison method used in diving mode.
Definition at line 414 of file BonDiver.hpp.
Referenced by operator=(), setComparisonDive(), and ~DiverCompare().
CbcCompareBase* Bonmin::DiverCompare::comparisonBound_ [private] |
Comparison method used bound mode.
Definition at line 416 of file BonDiver.hpp.
Referenced by operator=(), setComparisonBound(), and ~DiverCompare().
CbcCompareDepth Bonmin::DiverCompare::comparisonDepth_ [private] |
Comparison method used when limit tree size.
Definition at line 418 of file BonDiver.hpp.