#include <CbcBranchActual.hpp>
Inheritance diagram for CbcBranchDefaultDecision:
Public Member Functions | |
CbcBranchDefaultDecision () | |
CbcBranchDefaultDecision (const CbcBranchDefaultDecision &) | |
virtual | ~CbcBranchDefaultDecision () |
virtual CbcBranchDecision * | clone () const |
Clone. | |
virtual void | initialize (CbcModel *model) |
Initialize, e.g. before the start of branch selection at a node. | |
virtual int | betterBranch (CbcBranchingObject *thisOne, CbcBranchingObject *bestSoFar, double changeUp, int numInfUp, double changeDn, int numInfDn) |
Compare two branching objects. Return nonzero if thisOne is better than bestSoFar . | |
virtual void | setBestCriterion (double value) |
Sets or gets best criterion so far. | |
virtual double | getBestCriterion () const |
virtual int | bestBranch (CbcBranchingObject **objects, int numberObjects, int numberUnsatisfied, double *changeUp, int *numberInfeasibilitiesUp, double *changeDown, int *numberInfeasibilitiesDown, double objectiveValue) |
Compare N branching objects. Return index of best and sets way of branching in chosen object. | |
Private Member Functions | |
CbcBranchDefaultDecision & | operator= (const CbcBranchDefaultDecision &rhs) |
Illegal Assignment operator. | |
Private Attributes | |
double | bestCriterion_ |
data "best" so far | |
double | bestChangeUp_ |
Change up for best. | |
int | bestNumberUp_ |
Number of infeasibilities for up. | |
double | bestChangeDown_ |
Change down for best. | |
int | bestNumberDown_ |
Number of infeasibilities for down. | |
CbcBranchingObject * | bestObject_ |
Pointer to best branching object. |
This class implements a simple default algorithm (betterBranch()) for choosing a branching variable.
Definition at line 781 of file CbcBranchActual.hpp.
|
|
|
|
|
|
|
Clone.
Implements CbcBranchDecision. |
|
Initialize, e.g. before the start of branch selection at a node.
Implements CbcBranchDecision. |
|
Compare two branching objects. Return nonzero if
The routine compares branches using the values supplied in
As the names imply, the assumption is that the values supplied for
Because an Implements CbcBranchDecision. |
|
Sets or gets best criterion so far.
Reimplemented from CbcBranchDecision. |
|
Reimplemented from CbcBranchDecision. |
|
Compare N branching objects. Return index of best and sets way of branching in chosen object. This routine is used only after strong branching. Reimplemented from CbcBranchDecision. |
|
Illegal Assignment operator.
|
|
data "best" so far
Definition at line 843 of file CbcBranchActual.hpp. |
|
Change up for best.
Definition at line 846 of file CbcBranchActual.hpp. |
|
Number of infeasibilities for up.
Definition at line 849 of file CbcBranchActual.hpp. |
|
Change down for best.
Definition at line 852 of file CbcBranchActual.hpp. |
|
Number of infeasibilities for down.
Definition at line 855 of file CbcBranchActual.hpp. |
|
Pointer to best branching object.
Definition at line 858 of file CbcBranchActual.hpp. |