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

This class implements maximum infeasibility branching. More...

#include <BlisBranchStrategyMaxInf.h>

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

Public Member Functions

 BlisBranchStrategyMaxInf ()
 MaxInf Constructor. More...
 
 BlisBranchStrategyMaxInf (BlisModel *model)
 MaxInf Constructor. More...
 
virtual ~BlisBranchStrategyMaxInf ()
 Destructor. More...
 
 BlisBranchStrategyMaxInf (const BlisBranchStrategyMaxInf &)
 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 ()
 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 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

BlisBranchStrategyMaxInfoperator= (const BlisBranchStrategyMaxInf &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

This class implements maximum infeasibility branching.

Definition at line 32 of file BlisBranchStrategyMaxInf.h.

Constructor & Destructor Documentation

BlisBranchStrategyMaxInf::BlisBranchStrategyMaxInf ( )
inline

MaxInf Constructor.

Definition at line 42 of file BlisBranchStrategyMaxInf.h.

BlisBranchStrategyMaxInf::BlisBranchStrategyMaxInf ( BlisModel model)
inline

MaxInf Constructor.

Definition at line 47 of file BlisBranchStrategyMaxInf.h.

virtual BlisBranchStrategyMaxInf::~BlisBranchStrategyMaxInf ( )
inlinevirtual

Destructor.

Definition at line 52 of file BlisBranchStrategyMaxInf.h.

BlisBranchStrategyMaxInf::BlisBranchStrategyMaxInf ( const BlisBranchStrategyMaxInf )

Copy constructor.

Member Function Documentation

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

Illegal Assignment operator.

virtual BcpsBranchStrategy* BlisBranchStrategyMaxInf::clone ( ) const
inlinevirtual

Clone a brancing strategy.

Implements BcpsBranchStrategy.

Definition at line 58 of file BlisBranchStrategyMaxInf.h.

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

Create a set of candidate branching objects.

Reimplemented from BcpsBranchStrategy.

virtual int BlisBranchStrategyMaxInf::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: