Branching decision user class.
More...
#include <CbcBranchUser.hpp>
|
| 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...
|
|
Branching decision user class.
Definition at line 14 of file CbcBranchUser.hpp.
◆ CbcBranchUserDecision() [1/2]
CbcBranchUserDecision::CbcBranchUserDecision |
( |
| ) |
|
◆ CbcBranchUserDecision() [2/2]
◆ ~CbcBranchUserDecision()
virtual CbcBranchUserDecision::~CbcBranchUserDecision |
( |
| ) |
|
|
virtual |
◆ clone()
◆ initialize()
virtual void CbcBranchUserDecision::initialize |
( |
CbcModel * |
model | ) |
|
|
virtual |
◆ betterBranch()
virtual int CbcBranchUserDecision::betterBranch |
( |
CbcBranchingObject * |
thisOne, |
|
|
CbcBranchingObject * |
bestSoFar, |
|
|
double |
changeUp, |
|
|
int |
numberInfeasibilitiesUp, |
|
|
double |
changeDown, |
|
|
int |
numberInfeasibilitiesDown |
|
) |
| |
|
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.
◆ bestBranch()
virtual int CbcBranchUserDecision::bestBranch |
( |
CbcBranchingObject ** |
objects, |
|
|
int |
numberObjects, |
|
|
int |
numberUnsatisfied, |
|
|
double * |
changeUp, |
|
|
int * |
numberInfeasibilitiesUp, |
|
|
double * |
changeDown, |
|
|
int * |
numberInfeasibilitiesDown, |
|
|
double |
objectiveValue |
|
) |
| |
|
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.
◆ operator=()
Illegal Assignment operator.
The documentation for this class was generated from the following file: