|
Blis 0.94
|
This class implements maximum infeasibility branching. More...
#include <BlisBranchStrategyMaxInf.h>
Inheritance diagram for BlisBranchStrategyMaxInf:
Collaboration diagram for BlisBranchStrategyMaxInf:Public Member Functions | |
| BlisBranchStrategyMaxInf () | |
| MaxInf Constructor. | |
| BlisBranchStrategyMaxInf (BlisModel *model) | |
| MaxInf Constructor. | |
| virtual | ~BlisBranchStrategyMaxInf () |
| Destructor. | |
| BlisBranchStrategyMaxInf (const BlisBranchStrategyMaxInf &) | |
| Copy constructor. | |
| virtual BcpsBranchStrategy * | clone () const |
| Clone a brancing strategy. | |
| virtual int | createCandBranchObjects (int numPassesLeft, double ub) |
| Create a set of candidate branching objects. | |
| virtual int | betterBranchObject (BcpsBranchObject *thisOne, BcpsBranchObject *bestSoFar) |
| Compare branching object thisOne to bestSoFar. | |
Public Member Functions inherited from BcpsBranchStrategy | |
| BcpsBranchStrategy () | |
| BcpsBranchStrategy (BcpsModel *m) | |
| virtual | ~BcpsBranchStrategy () |
| virtual BcpsBranchStrategy * | clone () 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) |
| BcpsBranchObject * | getBestBranchObject () |
| 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 BcpsBranchObject * | bestBranchObject () |
Additional Inherited Members | |
Protected Attributes inherited from BcpsBranchStrategy | |
| int | type_ |
| BcpsModel * | model_ |
| int | numBranchObjects_ |
| BcpsBranchObject ** | branchObjects_ |
| BcpsBranchObject * | bestBranchObject_ |
| double | bestChangeUp_ |
| int | bestNumberUp_ |
| double | bestChangeDown_ |
| int | bestNumberDown_ |
This class implements maximum infeasibility branching.
Definition at line 32 of file BlisBranchStrategyMaxInf.h.
|
inline |
MaxInf Constructor.
Definition at line 42 of file BlisBranchStrategyMaxInf.h.
|
inline |
MaxInf Constructor.
Definition at line 47 of file BlisBranchStrategyMaxInf.h.
|
inlinevirtual |
Destructor.
Definition at line 52 of file BlisBranchStrategyMaxInf.h.
| BlisBranchStrategyMaxInf::BlisBranchStrategyMaxInf | ( | const BlisBranchStrategyMaxInf & | ) |
Copy constructor.
|
inlinevirtual |
Clone a brancing strategy.
Implements BcpsBranchStrategy.
Definition at line 58 of file BlisBranchStrategyMaxInf.h.
|
virtual |
Create a set of candidate branching objects.
Reimplemented from BcpsBranchStrategy.
|
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.