#include <CbcCompareDefault.hpp>
Inheritance diagram for CbcCompareDefault:
Public Member Functions | |
CbcCompareDefault () | |
Default Constructor. | |
CbcCompareDefault (double weight) | |
Constructor with weight. | |
CbcCompareDefault (const CbcCompareDefault &rhs) | |
Copy constructor. | |
CbcCompareDefault & | operator= (const CbcCompareDefault &rhs) |
Assignment operator. | |
virtual CbcCompareBase * | clone () const |
Clone. | |
virtual void | generateCpp (FILE *fp) |
Create C++ lines to get to current state. | |
~CbcCompareDefault () | |
virtual bool | test (CbcNode *x, CbcNode *y) |
This is test function. | |
virtual bool | newSolution (CbcModel *model, double objectiveAtContinuous, int numberInfeasibilitiesAtContinuous) |
This allows method to change behavior as it is called after each solution. | |
virtual bool | every1000Nodes (CbcModel *model, int numberNodes) |
This allows method to change behavior Return true if want tree re-sorted. | |
double | getWeight () const |
void | setWeight (double weight) |
double | getCutoff () const |
Cutoff. | |
void | setCutoff (double cutoff) |
double | getBestPossible () const |
Best possible solution. | |
void | setBestPossible (double bestPossible) |
void | setBreadthDepth (int value) |
Depth above which want to explore first. | |
void | startDive (CbcModel *model) |
Start dive. | |
void | cleanDive () |
Clean up diving (i.e. switch off or prepare). | |
Protected Attributes | |
double | weight_ |
Weight for each infeasibility. | |
double | saveWeight_ |
Weight for each infeasibility - computed from solution. | |
double | cutoff_ |
Cutoff. | |
double | bestPossible_ |
Best possible solution. | |
int | numberSolutions_ |
Number of solutions. | |
int | treeSize_ |
Tree size (at last check). | |
int | breadthDepth_ |
Depth above which want to explore first. | |
int | startNodeNumber_ |
Chosen node from estimated (-1 is off). | |
int | afterNodeNumber_ |
Node number when dive started. | |
bool | setupForDiving_ |
Indicates doing setup for diving. |
Definition at line 31 of file CbcCompareDefault.hpp.
CbcCompareDefault::CbcCompareDefault | ( | ) |
Default Constructor.
CbcCompareDefault::CbcCompareDefault | ( | double | weight | ) |
Constructor with weight.
CbcCompareDefault::CbcCompareDefault | ( | const CbcCompareDefault & | rhs | ) |
Copy constructor.
CbcCompareDefault::~CbcCompareDefault | ( | ) |
CbcCompareDefault& CbcCompareDefault::operator= | ( | const CbcCompareDefault & | rhs | ) |
Assignment operator.
virtual CbcCompareBase* CbcCompareDefault::clone | ( | ) | const [virtual] |
virtual void CbcCompareDefault::generateCpp | ( | FILE * | fp | ) | [virtual] |
virtual bool CbcCompareDefault::newSolution | ( | CbcModel * | model, | |
double | objectiveAtContinuous, | |||
int | numberInfeasibilitiesAtContinuous | |||
) | [virtual] |
This allows method to change behavior as it is called after each solution.
Reimplemented from CbcCompareBase.
virtual bool CbcCompareDefault::every1000Nodes | ( | CbcModel * | model, | |
int | numberNodes | |||
) | [virtual] |
This allows method to change behavior Return true if want tree re-sorted.
Reimplemented from CbcCompareBase.
double CbcCompareDefault::getWeight | ( | ) | const [inline] |
Definition at line 68 of file CbcCompareDefault.hpp.
void CbcCompareDefault::setWeight | ( | double | weight | ) | [inline] |
Definition at line 71 of file CbcCompareDefault.hpp.
double CbcCompareDefault::getCutoff | ( | ) | const [inline] |
void CbcCompareDefault::setCutoff | ( | double | cutoff | ) | [inline] |
Definition at line 78 of file CbcCompareDefault.hpp.
double CbcCompareDefault::getBestPossible | ( | ) | const [inline] |
void CbcCompareDefault::setBestPossible | ( | double | bestPossible | ) | [inline] |
Definition at line 85 of file CbcCompareDefault.hpp.
void CbcCompareDefault::setBreadthDepth | ( | int | value | ) | [inline] |
void CbcCompareDefault::startDive | ( | CbcModel * | model | ) |
Start dive.
void CbcCompareDefault::cleanDive | ( | ) |
Clean up diving (i.e. switch off or prepare).
double CbcCompareDefault::weight_ [protected] |
double CbcCompareDefault::saveWeight_ [protected] |
Weight for each infeasibility - computed from solution.
Definition at line 100 of file CbcCompareDefault.hpp.
double CbcCompareDefault::cutoff_ [protected] |
double CbcCompareDefault::bestPossible_ [protected] |
int CbcCompareDefault::numberSolutions_ [protected] |
int CbcCompareDefault::treeSize_ [protected] |
int CbcCompareDefault::breadthDepth_ [protected] |
int CbcCompareDefault::startNodeNumber_ [protected] |
int CbcCompareDefault::afterNodeNumber_ [protected] |
bool CbcCompareDefault::setupForDiving_ [protected] |