|
Cbc
2.10.10
|
#include <CbcBranchDecision.hpp>
Inheritance diagram for CbcBranchDecision:
Collaboration diagram for CbcBranchDecision:Public Member Functions | |
| CbcBranchDecision () | |
| Default Constructor. More... | |
| CbcBranchDecision (const CbcBranchDecision &) | |
| virtual | ~CbcBranchDecision () |
| Destructor. More... | |
| virtual CbcBranchDecision * | clone () const =0 |
| Clone. More... | |
| virtual void | initialize (CbcModel *model)=0 |
| Initialize e.g. before starting to choose a branch at a node. More... | |
| virtual int | betterBranch (CbcBranchingObject *thisOne, CbcBranchingObject *bestSoFar, double changeUp, int numberInfeasibilitiesUp, double changeDown, int numberInfeasibilitiesDown)=0 |
| Compare two branching objects. 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... | |
| 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... | |
Protected Attributes | |
| CbcBranchingObject * | object_ |
| CbcModel * | model_ |
| Pointer to model. More... | |
| OsiChooseVariable * | chooseMethod_ |
Private Member Functions | |
| CbcBranchDecision & | operator= (const CbcBranchDecision &rhs) |
| Assignment is illegal. More... | |
Definition at line 28 of file CbcBranchDecision.hpp.
| CbcBranchDecision::CbcBranchDecision | ( | ) |
Default Constructor.
| CbcBranchDecision::CbcBranchDecision | ( | const CbcBranchDecision & | ) |
|
virtual |
Destructor.
|
pure virtual |
Clone.
Implemented in CbcBranchDynamicDecision, CbcBranchDefaultDecision, and CbcBranchUserDecision.
|
pure virtual |
Initialize e.g. before starting to choose a branch at a node.
Implemented in CbcBranchDynamicDecision, CbcBranchDefaultDecision, and CbcBranchUserDecision.
|
pure virtual |
Compare two branching objects.
Return nonzero if branching using thisOne is better than branching using bestSoFar.
If bestSoFar is NULL, the routine should return a nonzero value. This routine is used only after strong branching. Either this or bestBranch is used depending which user wants.
Implemented in CbcBranchDynamicDecision, CbcBranchDefaultDecision, and CbcBranchUserDecision.
|
virtual |
Compare N branching objects.
Return index of best and sets way of branching in chosen object.
Either this or betterBranch is used depending which user wants.
Reimplemented in CbcBranchDefaultDecision, and CbcBranchUserDecision.
|
inlinevirtual |
Says whether this method can handle both methods - 1 better, 2 best, 3 both.
Reimplemented in CbcBranchDynamicDecision.
Definition at line 75 of file CbcBranchDecision.hpp.
|
inlinevirtual |
Saves a clone of current branching object.
Can be used to update information on object causing branch - after branch
Reimplemented in CbcBranchDynamicDecision.
Definition at line 82 of file CbcBranchDecision.hpp.
|
inlinevirtual |
Pass in information on branch just done.
assumes object can get information from solver
Reimplemented in CbcBranchDynamicDecision.
Definition at line 85 of file CbcBranchDecision.hpp.
|
inlinevirtual |
Sets or gets best criterion so far.
Reimplemented in CbcBranchDynamicDecision, and CbcBranchDefaultDecision.
Definition at line 88 of file CbcBranchDecision.hpp.
|
inlinevirtual |
Reimplemented in CbcBranchDynamicDecision, and CbcBranchDefaultDecision.
Definition at line 89 of file CbcBranchDecision.hpp.
|
inlinevirtual |
Create C++ lines to get to current state.
Definition at line 94 of file CbcBranchDecision.hpp.
|
inline |
Model.
Definition at line 96 of file CbcBranchDecision.hpp.
|
inline |
Definition at line 111 of file CbcBranchDecision.hpp.
| void CbcBranchDecision::setChooseMethod | ( | const OsiChooseVariable & | method | ) |
Set (clone) chooseMethod.
|
private |
Assignment is illegal.
|
protected |
Definition at line 120 of file CbcBranchDecision.hpp.
|
protected |
Pointer to model.
Definition at line 122 of file CbcBranchDecision.hpp.
|
protected |
Definition at line 126 of file CbcBranchDecision.hpp.
1.8.17