SetBranchRule(Master *master, int variable, FSVarStat::STATUS status)
Creates a branching rule for setting binary variable according to status.
The master of the optimization.
int variable_
The branching variable.
bool setToUpperBound() const
Returns true if the branching variable is set to the upper bound, false otherwise.
status of fixed and set variables.
virtual bool branchOnSetVar() override
Redefined for returning true, as this branching rule is setting a binary variable.
STATUS
The enumeration defining the different statuses of variables from the point of view of fixing and set...
virtual int extract(Sub *sub) override
Modifies a subproblem by setting the branching variable.
FSVarStat::STATUS status_
The status of the branching variable.
The linear program of a subproblem.
Base class for branching rules.
Implements a branching rule for setting a binary variable to its lower or upper bound.
Abstract base class for all branching rules.
double oldLpBound_
The bound of the branching variable in the LP before it is temporarily modified for testing the quali...
int variable() const
Returns the number of the branching variable.
friend ostream & operator<<(ostream &out, const SetBranchRule &rhs)
Output operator for set branching rules.
virtual void unExtract(LpSub *lp) override
Should undo the modifictions of the linear programming relaxtion |lp|.
The variable is set to its upper bound.