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

This class implements maximum infeasibility branching. More...

#include <BlisBranchStrategyBilevel.h>

+ Inheritance diagram for BlisBranchStrategyBilevel:
+ Collaboration diagram for BlisBranchStrategyBilevel:

Public Member Functions

 BlisBranchStrategyBilevel ()
 Bilevel Constructor. More...
 
 BlisBranchStrategyBilevel (BlisModel *model)
 Bilevel Constructor. More...
 
virtual ~BlisBranchStrategyBilevel ()
 Destructor. More...
 
 BlisBranchStrategyBilevel (const BlisBranchStrategyBilevel &)
 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 ()
 
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 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 maximum infeasibility branching.

Definition at line 32 of file BlisBranchStrategyBilevel.h.

Constructor & Destructor Documentation

◆ BlisBranchStrategyBilevel() [1/3]

BlisBranchStrategyBilevel::BlisBranchStrategyBilevel ( )
inline

Bilevel Constructor.

Definition at line 42 of file BlisBranchStrategyBilevel.h.

◆ BlisBranchStrategyBilevel() [2/3]

BlisBranchStrategyBilevel::BlisBranchStrategyBilevel ( BlisModel model)
inline

Bilevel Constructor.

Definition at line 47 of file BlisBranchStrategyBilevel.h.

◆ ~BlisBranchStrategyBilevel()

virtual BlisBranchStrategyBilevel::~BlisBranchStrategyBilevel ( )
inlinevirtual

Destructor.

Definition at line 52 of file BlisBranchStrategyBilevel.h.

◆ BlisBranchStrategyBilevel() [3/3]

BlisBranchStrategyBilevel::BlisBranchStrategyBilevel ( const BlisBranchStrategyBilevel )

Copy constructor.

Member Function Documentation

◆ clone()

virtual BcpsBranchStrategy* BlisBranchStrategyBilevel::clone ( ) const
inlinevirtual

Clone a brancing strategy.

Implements BcpsBranchStrategy.

Definition at line 58 of file BlisBranchStrategyBilevel.h.

◆ createCandBranchObjects()

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

Create a set of candidate branching objects.

Reimplemented from BcpsBranchStrategy.

◆ betterBranchObject()

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