Branching strategy specifies: (1) how to select a candidate set of branching objects (2) how to compare two branching objects.
More...
#include <BcpsBranchStrategy.h>
Branching strategy specifies: (1) how to select a candidate set of branching objects (2) how to compare two branching objects.
Definition at line 39 of file BcpsBranchStrategy.h.
◆ BcpsBranchStrategy() [1/2]
BcpsBranchStrategy::BcpsBranchStrategy |
( |
| ) |
|
|
inline |
◆ BcpsBranchStrategy() [2/2]
BcpsBranchStrategy::BcpsBranchStrategy |
( |
BcpsModel * |
m | ) |
|
|
inline |
◆ ~BcpsBranchStrategy()
virtual BcpsBranchStrategy::~BcpsBranchStrategy |
( |
| ) |
|
|
inlinevirtual |
◆ clone()
◆ getType()
int BcpsBranchStrategy::getType |
( |
| ) |
|
|
inline |
◆ setType()
void BcpsBranchStrategy::setType |
( |
int |
t | ) |
|
|
inline |
◆ setModel()
void BcpsBranchStrategy::setModel |
( |
BcpsModel * |
m | ) |
|
|
inline |
◆ getNumBranchObjects() [1/2]
int BcpsBranchStrategy::getNumBranchObjects |
( |
| ) |
|
|
inline |
◆ getNumBranchObjects() [2/2]
void BcpsBranchStrategy::getNumBranchObjects |
( |
int |
num | ) |
|
|
inline |
◆ getBranchObjects()
◆ setBranchObjects()
◆ getBestBranchObject()
◆ setBestBranchObject()
◆ clearBest()
virtual void BcpsBranchStrategy::clearBest |
( |
BcpsModel * |
model | ) |
|
|
inlinevirtual |
Clear branching strategy environment before starting a new round of selecting the best branch object.
Definition at line 138 of file BcpsBranchStrategy.h.
◆ createCandBranchObjects()
virtual int BcpsBranchStrategy::createCandBranchObjects |
( |
int |
numPassesLeft, |
|
|
double |
ub |
|
) |
| |
|
inlinevirtual |
◆ betterBranchObject()
Compare branching object thisOne to bestSoFar.
If thisOne is better than bestObject, return branching direction(1 or -1), otherwise return 0. If bestSorFar is NULL, then always return branching direction(1 or -1).
◆ bestBranchObject()
Compare branching objects in branchObjects_.
Return the index of the best branching object. Also, set branch direction in the best object.
◆ type_
int BcpsBranchStrategy::type_ |
|
protected |
◆ model_
◆ numBranchObjects_
int BcpsBranchStrategy::numBranchObjects_ |
|
protected |
Following members are used to store candidate branching objects.
NOTE: They are required to be cleared before starting another round of selecting. Number of candidate branching objects.
Definition at line 58 of file BcpsBranchStrategy.h.
◆ branchObjects_
◆ bestBranchObject_
Following members are used to store information about best branching object found so far.
NOTE: They are required to be cleared before starting another round of selecting. Best branching object found so far.
Definition at line 69 of file BcpsBranchStrategy.h.
◆ bestChangeUp_
double BcpsBranchStrategy::bestChangeUp_ |
|
protected |
◆ bestNumberUp_
int BcpsBranchStrategy::bestNumberUp_ |
|
protected |
◆ bestChangeDown_
double BcpsBranchStrategy::bestChangeDown_ |
|
protected |
◆ bestNumberDown_
int BcpsBranchStrategy::bestNumberDown_ |
|
protected |
The documentation for this class was generated from the following file: