123 down_[0] = lowerValue;
124 down_[1] = upperValue;
146 virtual double branch(
bool normalBranch =
false);
149 virtual void print(
bool normalBranch);
165 for (j = 0; j < 2; ++j) {
168 for (j = 0; j < 2; ++j) {
180 for (j = 0; j < 2; ++j) {
183 for (j = 0; j < 2; ++j) {
AlpsEncoded & readRep(T &value)
Read a single object of type T from repsentation_ .
AlpsEncoded & writeRep(const T &value)
Write a single object of type T in repsentation_ .
int * getIntVars() const
Get integer indices.
AlpsReturnStatus decodeBlis(AlpsEncoded &encoded)
Unpack Blis portion from an encoded object.
BlisBranchObjectInt(BlisModel *model, int varInd, int direction, double lowerValue, double upperValue)
Create a degenerate branching object.
double down_[2]
Down_[0]: the lower bound of down arm; Down_[1]: the upper bound of down arm;.
const double * getColUpper()
Get column upper bound.
double up_[2]
Up_[0]: the lower bound of upper arm; Up_[1]: the upper bound of upper arm;.
virtual AlpsReturnStatus encode(AlpsEncoded *encoded) const
Pack to an encoded object.
virtual AlpsReturnStatus decode(AlpsEncoded &encoded)
Unpack a branching object from an encoded object.
virtual ~BlisBranchObjectInt()
Destructor.
BlisBranchObjectInt(BlisModel *model, int varInd, int direction, double value)
Construct a branching object, which branching on variable varInd.
BlisBranchObjectInt & operator=(const BlisBranchObjectInt &rhs)
Assignment operator.
int objectIndex_
Branch object index.
double value_
Current branching value.
BcpsBranchObject contains the member data required when choosing branching entities and excuting actu...
BcpsModel * model() const
Return model.
const double * getDown() const
Get down arm bounds.
This data structure is to contain the packed form of an encodable knowledge.
const double * getUp() const
Get upper arm bounds.
virtual void print(bool normalBranch)
Print something about branch - only if log level high.
BlisBranchObjectInt()
Default constructor.
AlpsReturnStatus decodeBcps(AlpsEncoded &encoded)
Unpack Bcps portion from an encoded object.
virtual OsiSolverInterface * solver()
Get lp solver.
virtual const double * getColLower() const =0
Get a pointer to an array[getNumCols()] of column lower bounds.
AlpsReturnStatus encodeBcps(AlpsEncoded *encoded) const
Pack Bcps portion to an encoded object.
BlisBranchObjectInt(BlisModel *model, int varInd, int intScore, double dblScore, int direction, double value)
Construct a branching object, which branching on variable varInd.
int numBranchesLeft_
Number of arms remaining to be evaluated.
virtual BcpsBranchObject * clone() const
Clone.
AlpsReturnStatus encodeBlis(AlpsEncoded *encoded) const
Pack Blis portion to an encoded object.
virtual double branch(bool normalBranch=false)
Set the bounds for the variable according to the current arm of the branch and advances the object st...
int type_
Type of branching.