#include <CbcBranchDynamic.hpp>
Inheritance diagram for CbcBranchDynamicDecision:
Public Member Functions | |
CbcBranchDynamicDecision () | |
CbcBranchDynamicDecision (const CbcBranchDynamicDecision &) | |
virtual | ~CbcBranchDynamicDecision () |
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 | whichMethod () |
Says whether this method can handle both methods - 1 better, 2 best, 3 both. | |
virtual void | saveBranchingObject (CbcBranchingObject *object) |
Saves a clone of current branching object. | |
virtual void | updateInformation (OsiSolverInterface *solver, const CbcNode *node) |
Pass in information on branch just done. | |
Private Member Functions | |
CbcBranchDynamicDecision & | operator= (const CbcBranchDynamicDecision &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 algorithm (betterBranch()) for choosing a branching variable when dynamic pseudo costs.
Definition at line 340 of file CbcBranchDynamic.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. |
|
Says whether this method can handle both methods - 1 better, 2 best, 3 both.
Reimplemented from CbcBranchDecision. Definition at line 384 of file CbcBranchDynamic.hpp. |
|
Saves a clone of current branching object. Can be used to update information on object causing branch - after branch Reimplemented from CbcBranchDecision. |
|
Pass in information on branch just done. assumes object can get information from solver Reimplemented from CbcBranchDecision. |
|
Illegal Assignment operator.
|
|
data "best" so far
Definition at line 403 of file CbcBranchDynamic.hpp. |
|
Change up for best.
Definition at line 406 of file CbcBranchDynamic.hpp. |
|
Number of infeasibilities for up.
Definition at line 409 of file CbcBranchDynamic.hpp. |
|
Change down for best.
Definition at line 412 of file CbcBranchDynamic.hpp. |
|
Number of infeasibilities for down.
Definition at line 415 of file CbcBranchDynamic.hpp. |
|
Pointer to best branching object.
Definition at line 418 of file CbcBranchDynamic.hpp. |