Blis 0.94
Public Member Functions | List of all members
BlisBranchStrategyStrong Class Reference

This class implements strong branching. More...

#include <BlisBranchStrategyStrong.h>

+ Inheritance diagram for BlisBranchStrategyStrong:
+ Collaboration diagram for BlisBranchStrategyStrong:

Public Member Functions

 BlisBranchStrategyStrong ()
 Strong Constructor. More...
 
 BlisBranchStrategyStrong (BlisModel *model)
 Strong Constructor. More...
 
virtual ~BlisBranchStrategyStrong ()
 Destructor. More...
 
 BlisBranchStrategyStrong (const BlisBranchStrategyStrong &)
 Copy constructor. More...
 
virtual BcpsBranchStrategyclone () const
 Clone a brancing strategy. More...
 
virtual int createCandBranchObjects (int numPassesLeft, double ub)
 Create a set of candidate branching objects. More...
 
virtual int betterBranchObject (BcpsBranchObject *thisOne, BcpsBranchObject *bestSoFar)
 Compare branching object thisOne to bestSoFar. More...
 
- Public Member Functions inherited from BcpsBranchStrategy
 BcpsBranchStrategy ()
 
 BcpsBranchStrategy (BcpsModel *m)
 
virtual ~BcpsBranchStrategy ()
 
virtual BcpsBranchStrategyclone () const=0
 
int getType () const
 
void setType (int t)
 
void setModel (BcpsModel *m)
 
int getNumBranchObjects () const
 
void setNumBranchObjects (int num)
 
BcpsBranchObject ** getBranchObjects ()
 
void setBranchObjects (BcpsBranchObject **obj)
 
BcpsBranchObjectgetBestBranchObject ()
 
void setBestBranchObject (BcpsBranchObject *ob)
 
virtual void clearBest (BcpsModel *model)
 
virtual int createCandBranchObjects (int numPassesLeft, double ub)
 
virtual int betterBranchObject (BcpsBranchObject *b, BcpsBranchObject *bestSoFar)=0
 
virtual BcpsBranchObjectbestBranchObject ()
 

Additional Inherited Members

- Protected Attributes inherited from BcpsBranchStrategy
int type_
 
BcpsModelmodel_
 
int numBranchObjects_
 
BcpsBranchObject ** branchObjects_
 
BcpsBranchObjectbestBranchObject_
 
double bestChangeUp_
 
int bestNumberUp_
 
double bestChangeDown_
 
int bestNumberDown_
 

Detailed Description

This class implements strong branching.

Definition at line 57 of file BlisBranchStrategyStrong.h.

Constructor & Destructor Documentation

◆ BlisBranchStrategyStrong() [1/3]

BlisBranchStrategyStrong::BlisBranchStrategyStrong ( )
inline

Strong Constructor.

Definition at line 67 of file BlisBranchStrategyStrong.h.

◆ BlisBranchStrategyStrong() [2/3]

BlisBranchStrategyStrong::BlisBranchStrategyStrong ( BlisModel model)
inline

Strong Constructor.

Definition at line 72 of file BlisBranchStrategyStrong.h.

◆ ~BlisBranchStrategyStrong()

virtual BlisBranchStrategyStrong::~BlisBranchStrategyStrong ( )
inlinevirtual

Destructor.

Definition at line 78 of file BlisBranchStrategyStrong.h.

◆ BlisBranchStrategyStrong() [3/3]

BlisBranchStrategyStrong::BlisBranchStrategyStrong ( const BlisBranchStrategyStrong )

Copy constructor.

Member Function Documentation

◆ clone()

virtual BcpsBranchStrategy * BlisBranchStrategyStrong::clone ( ) const
inlinevirtual

Clone a brancing strategy.

Implements BcpsBranchStrategy.

Definition at line 84 of file BlisBranchStrategyStrong.h.

◆ createCandBranchObjects()

virtual int BlisBranchStrategyStrong::createCandBranchObjects ( int  numPassesLeft,
double  ub 
)
virtual

Create a set of candidate branching objects.

Reimplemented from BcpsBranchStrategy.

◆ betterBranchObject()

virtual int BlisBranchStrategyStrong::betterBranchObject ( BcpsBranchObject thisOne,
BcpsBranchObject bestSoFar 
)
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.


The documentation for this class was generated from the following file: