Public Member Functions | Private Member Functions | List of all members
BlisBranchStrategyStrong Class Reference

Blis branching strategy default class This class implements a simple default algorithm, betterBranchObject(), for choosing a branching variable. More...

#include <BlisBranchStrategyStrong.h>

Inheritance diagram for BlisBranchStrategyStrong:
Inheritance graph
[legend]
Collaboration diagram for BlisBranchStrategyStrong:
Collaboration graph
[legend]

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)
 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 ()
 Default Constructor. More...
 
 BcpsBranchStrategy (BcpsModel *m)
 Useful Constructor. More...
 
virtual ~BcpsBranchStrategy ()
 Destructor. More...
 
int getType ()
 Get type. More...
 
void setType (int t)
 Set type. More...
 
void setModel (BcpsModel *m)
 Set model. More...
 
virtual void clearBest (BcpsModel *model)
 Clear branching strategy environment before starting a new round of selecting the best branch object. More...
 
virtual int createCandBranchObjects (int numPassesLeft, double ub)
 Create a set of candidate branching objects. More...
 
virtual BcpsBranchObjectbestBranchObject ()
 Compare branching objects in branchObjects_. More...
 
int getNumBranchObjects ()
 Set/get branching objects. More...
 
void getNumBranchObjects (int num)
 Set/get branching objects. More...
 
BcpsBranchObject ** getBranchObjects ()
 Set/get branching objects. More...
 
void setBranchObjects (BcpsBranchObject **obj)
 Set/get branching objects. More...
 
BcpsBranchObjectgetBestBranchObject ()
 Set/get branching objects. More...
 
void setBestBranchObject (BcpsBranchObject *ob)
 Set/get branching objects. More...
 

Private Member Functions

BlisBranchStrategyStrongoperator= (const BlisBranchStrategyStrong &rhs)
 Illegal Assignment operator. More...
 

Additional Inherited Members

- Protected Attributes inherited from BcpsBranchStrategy
int type_
 Type of branching strategy. More...
 
BcpsModelmodel_
 Pointer to model. More...
 
int numBranchObjects_
 Following members are used to store candidate branching objects. More...
 
BcpsBranchObject ** branchObjects_
 The set of candiate branching objects. More...
 
BcpsBranchObjectbestBranchObject_
 Following members are used to store information about best branching object found so far. More...
 
double bestChangeUp_
 Change up for best. More...
 
int bestNumberUp_
 Number of infeasibilities for up. More...
 
double bestChangeDown_
 Change down for best. More...
 
int bestNumberDown_
 Number of infeasibilities for down. More...
 

Detailed Description

Blis branching strategy default class This class implements a simple default algorithm, betterBranchObject(), for choosing a branching variable.

Definition at line 59 of file BlisBranchStrategyStrong.h.

Constructor & Destructor Documentation

BlisBranchStrategyStrong::BlisBranchStrategyStrong ( )
inline

Strong Constructor.

Definition at line 69 of file BlisBranchStrategyStrong.h.

BlisBranchStrategyStrong::BlisBranchStrategyStrong ( BlisModel model)
inline

Strong Constructor.

Definition at line 72 of file BlisBranchStrategyStrong.h.

virtual BlisBranchStrategyStrong::~BlisBranchStrategyStrong ( )
inlinevirtual

Destructor.

Definition at line 77 of file BlisBranchStrategyStrong.h.

BlisBranchStrategyStrong::BlisBranchStrategyStrong ( const BlisBranchStrategyStrong )

Copy constructor.

Member Function Documentation

BlisBranchStrategyStrong& BlisBranchStrategyStrong::operator= ( const BlisBranchStrategyStrong rhs)
private

Illegal Assignment operator.

virtual BcpsBranchStrategy* BlisBranchStrategyStrong::clone ( ) const
inlinevirtual

Clone a brancing strategy.

Implements BcpsBranchStrategy.

Definition at line 83 of file BlisBranchStrategyStrong.h.

virtual int BlisBranchStrategyStrong::createCandBranchObjects ( int  numPassesLeft)
virtual

Create a set of candidate branching objects.

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: