Blis 0.94
|
Blis branching strategy. More...
#include <BlisBranchStrategyRel.h>
Public Member Functions | |
BlisBranchStrategyRel () | |
Default Constructor. | |
BlisBranchStrategyRel (BlisModel *model, int rel) | |
Useful Constructor. | |
virtual | ~BlisBranchStrategyRel () |
Destructor. | |
BlisBranchStrategyRel (const BlisBranchStrategyRel &) | |
Copy constructor. | |
void | setRelibility (int rel) |
Set relibility. | |
virtual BcpsBranchStrategy * | clone () const |
Clone a brancing strategy. | |
virtual int | betterBranchObject (BcpsBranchObject *thisOne, BcpsBranchObject *bestSoFar) |
Compare branching object thisOne to bestSoFar. | |
virtual int | createCandBranchObjects (int numPassesLeft, double ub) |
Create a set of candidate branching objects. | |
![]() | |
BcpsBranchStrategy () | |
BcpsBranchStrategy (BcpsModel *m) | |
virtual | ~BcpsBranchStrategy () |
int | getType () const |
void | setType (int t) |
void | setModel (BcpsModel *m) |
int | getNumBranchObjects () const |
void | setNumBranchObjects (int num) |
BcpsBranchObject ** | getBranchObjects () |
void | setBranchObjects (BcpsBranchObject **obj) |
BcpsBranchObject * | getBestBranchObject () |
void | setBestBranchObject (BcpsBranchObject *ob) |
virtual void | clearBest (BcpsModel *model) |
virtual BcpsBranchObject * | bestBranchObject () |
Protected Attributes | |
int | relibility_ |
![]() | |
int | type_ |
BcpsModel * | model_ |
int | numBranchObjects_ |
BcpsBranchObject ** | branchObjects_ |
BcpsBranchObject * | bestBranchObject_ |
double | bestChangeUp_ |
int | bestNumberUp_ |
double | bestChangeDown_ |
int | bestNumberDown_ |
Blis branching strategy.
This class implements reliability branching.
Definition at line 40 of file BlisBranchStrategyRel.h.
|
inline |
Default Constructor.
Definition at line 53 of file BlisBranchStrategyRel.h.
|
inline |
Useful Constructor.
Definition at line 59 of file BlisBranchStrategyRel.h.
|
inlinevirtual |
Destructor.
Definition at line 66 of file BlisBranchStrategyRel.h.
BlisBranchStrategyRel::BlisBranchStrategyRel | ( | const BlisBranchStrategyRel & | ) |
Copy constructor.
|
inline |
Set relibility.
Definition at line 72 of file BlisBranchStrategyRel.h.
|
inlinevirtual |
Clone a brancing strategy.
Implements BcpsBranchStrategy.
Definition at line 75 of file BlisBranchStrategyRel.h.
|
virtual |
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).
Implements BcpsBranchStrategy.
|
virtual |
Create a set of candidate branching objects.
Reimplemented from BcpsBranchStrategy.
|
protected |
Definition at line 48 of file BlisBranchStrategyRel.h.