Dip-All
0.91.0
|
Branching decision user class. More...
#include <CbcBranchUser.hpp>
Public Member Functions | |
CbcBranchUserDecision () | |
CbcBranchUserDecision (const CbcBranchUserDecision &) | |
virtual | ~CbcBranchUserDecision () |
virtual CbcBranchDecision * | clone () const |
Clone. More... | |
virtual void | initialize (CbcModel *model) |
Initialize i.e. before start of choosing at a node. More... | |
virtual int | betterBranch (CbcBranchingObject *thisOne, CbcBranchingObject *bestSoFar, double changeUp, int numberInfeasibilitiesUp, double changeDown, int numberInfeasibilitiesDown) |
Returns nonzero if branching on first object is "better" than on second (if second NULL first wins). More... | |
virtual int | bestBranch (CbcBranchingObject **objects, int numberObjects, int numberUnsatisfied, double *changeUp, int *numberInfeasibilitiesUp, double *changeDown, int *numberInfeasibilitiesDown, double objectiveValue) |
Compare N branching objects. More... | |
![]() | |
CbcBranchDecision () | |
Default Constructor. More... | |
CbcBranchDecision (const CbcBranchDecision &) | |
virtual | ~CbcBranchDecision () |
Destructor. More... | |
virtual int | whichMethod () |
Says whether this method can handle both methods - 1 better, 2 best, 3 both. More... | |
virtual void | saveBranchingObject (OsiBranchingObject *) |
Saves a clone of current branching object. More... | |
virtual void | updateInformation (OsiSolverInterface *, const CbcNode *) |
Pass in information on branch just done. More... | |
virtual void | setBestCriterion (double) |
Sets or gets best criterion so far. More... | |
virtual double | getBestCriterion () const |
virtual void | generateCpp (FILE *) |
Create C++ lines to get to current state. More... | |
CbcModel * | cbcModel () const |
Model. More... | |
OsiChooseVariable * | chooseMethod () const |
void | setChooseMethod (const OsiChooseVariable &method) |
Set (clone) chooseMethod. More... | |
Private Member Functions | |
CbcBranchUserDecision & | operator= (const CbcBranchUserDecision &rhs) |
Illegal Assignment operator. More... | |
Additional Inherited Members | |
![]() | |
CbcBranchingObject * | object_ |
CbcModel * | model_ |
Pointer to model. More... | |
OsiChooseVariable * | chooseMethod_ |
Branching decision user class.
Definition at line 14 of file CbcBranchUser.hpp.
CbcBranchUserDecision::CbcBranchUserDecision | ( | ) |
CbcBranchUserDecision::CbcBranchUserDecision | ( | const CbcBranchUserDecision & | ) |
|
virtual |
|
virtual |
Clone.
Implements CbcBranchDecision.
Initialize i.e. before start of choosing at a node.
Implements CbcBranchDecision.
|
virtual |
Returns nonzero if branching on first object is "better" than on second (if second NULL first wins).
This is only used after strong branching. The initial selection is done by infeasibility() for each CbcObject return code +1 for up branch preferred, -1 for down
Implements CbcBranchDecision.
|
virtual |
Compare N branching objects.
Return index of best and sets way of branching in chosen object.
This routine is used only after strong branching. This is reccommended version as it can be more sophisticated
Reimplemented from CbcBranchDecision.
|
private |
Illegal Assignment operator.