12 #include "OsiRowCut.hpp"
13 #include "CoinHelperFunctions.hpp"
14 #include "CoinPackedMatrix.hpp"
82 int numberOnDownSide,
const int *down,
83 int numberOnUpSide,
const int *up);
Abstract branching object base class Now just difference with OsiBranchingObject.
virtual void previousBranch()
Reset every information so that the branching object appears to point to the previous child.
CbcModel * model() const
Return model.
virtual double branch()=0
Execute the actions required to branch, as specified by the current state of the branching object,...
int way() const
Get the state of the branching object.
virtual void print() const
Print something about branch - only if log level high.
General Branching Object class.
CbcFixingBranchingObject(CbcModel *model, int way, int numberOnDownSide, const int *down, int numberOnUpSide, const int *up)
virtual double branch()
Does next branch and updates state.
int * upList_
upList - variables to fix to lb on up branch
virtual ~CbcFixingBranchingObject()
CbcFixingBranchingObject(const CbcFixingBranchingObject &)
CbcFixingBranchingObject & operator=(const CbcFixingBranchingObject &rhs)
CbcFixingBranchingObject()
virtual CbcRangeCompare compareBranchingObject(const CbcBranchingObject *brObj, const bool replaceIfOverlap=false)
Compare the this with brObj.
virtual CbcBranchingObject * clone() const
Clone.
int numberDown_
data Number on down list
virtual int compareOriginalObject(const CbcBranchingObject *brObj) const
Compare the original object of this with the original object of brObj.
int numberUp_
Number on up list.
virtual CbcBranchObjType type() const
Return the type (an integer identifier) of this.
int * downList_
downList - variables to fix to lb on down branch
virtual void print()
Print something about branch - only if log level high.
Define a follow on class.
virtual int gutsOfFollowOn(int &otherRow, int &preferredWay) const
As some computation is needed in more than one place - returns row.
int * rhs_
Possible rhs (if 0 then not possible)
virtual CbcObject * clone() const
Clone.
CbcFollowOn & operator=(const CbcFollowOn &rhs)
CoinPackedMatrix matrixByRow_
Matrix by row.
CbcFollowOn(CbcModel *model)
Useful constructor.
virtual double infeasibility(const OsiBranchingInformation *info, int &preferredWay) const
Infeasibility - large is 0.5.
virtual void feasibleRegion()
This looks at solution and sets bounds to contain solution.
CoinPackedMatrix matrix_
data Matrix
virtual CbcBranchingObject * createCbcBranch(OsiSolverInterface *solver, const OsiBranchingInformation *info, int way)
Creates a branching object.
CbcFollowOn(const CbcFollowOn &)
Define an idiotic idea class.
OsiRowCut buildCut(const OsiBranchingInformation *info, int type, int &preferredWay) const
Build "cut".
CbcIdiotBranch(const CbcIdiotBranch &)
virtual double infeasibility(const OsiBranchingInformation *info, int &preferredWay) const
Infeasibility - large is 0.5.
virtual CbcObject * clone() const
Clone.
virtual CbcBranchingObject * createCbcBranch(OsiSolverInterface *solver, const OsiBranchingInformation *info, int way)
Creates a branching object.
virtual void initializeForBranching(CbcModel *)
Initialize for branching.
CoinThreadRandom randomNumberGenerator_
data Thread specific random number generator
CoinThreadRandom savedRandomNumberGenerator_
Saved version of thread specific random number generator.
CbcIdiotBranch & operator=(const CbcIdiotBranch &rhs)
CbcIdiotBranch(CbcModel *model)
Useful constructor.
virtual void feasibleRegion()
This looks at solution and sets bounds to contain solution.
Simple Branch and bound class.
CbcModel * model() const
Return model.
virtual void feasibleRegion()=0
For the variable(s) referenced by the object, look at the current solution and set bounds to match th...
int preferredWay() const
If -1 down always chosen first, +1 up always, 0 normal.