Go to the documentation of this file.
8 #ifndef CbcCompareDefault_H
9 #define CbcCompareDefault_H
57 double objectiveAtContinuous,
58 int numberInfeasibilitiesAtContinuous);
126 #endif //CbcCompareDefault_H
void startDive(CbcModel *model)
Start dive.
CbcCompareDefault & operator=(const CbcCompareDefault &rhs)
Assignment operator.
double weight_
Weight for each infeasibility.
int startNodeNumber_
Chosen node from estimated (-1 is off)
void setWeight(double weight)
virtual bool newSolution(CbcModel *)
Reconsider behaviour after discovering a new solution.
double bestPossible_
Best possible solution.
CbcCompareDefault()
Default Constructor.
int breadthDepth_
Depth above which want to explore first.
virtual void generateCpp(FILE *fp)
Create C++ lines to get to current state.
int afterNodeNumber_
Node number when dive started.
virtual bool every1000Nodes(CbcModel *model, int numberNodes)
This allows method to change behavior Return true if want tree re-sorted.
Simple Branch and bound class.
void setCutoff(double cutoff)
void setBreadthDepth(int value)
Depth above which want to explore first.
void cleanDive()
Clean up diving (i.e. switch off or prepare)
int numberSolutions_
Number of solutions.
virtual bool test(CbcNode *x, CbcNode *y)
This is test function.
double getBestPossible() const
Best possible solution.
virtual bool newSolution(CbcModel *model, double objectiveAtContinuous, int numberInfeasibilitiesAtContinuous)
This allows method to change behavior as it is called after each solution.
Information required while the node is live.
bool setupForDiving_
Indicates doing setup for diving.
void setBestPossible(double bestPossible)
double saveWeight_
Weight for each infeasibility - computed from solution.
virtual CbcCompareBase * clone() const
Clone.
double getCutoff() const
Cutoff.
int treeSize_
Tree size (at last check)