int variable() const
Returns the number of the branching variable.
Implements a branching rule for setting a variable to a certain value.
The master of the optimization.
friend std::ostream & operator<<(std::ostream &out, const ValBranchRule &rhs)
Output operator for val branching rules.
virtual int extract(Sub *sub) override
Modifies a subproblem by setting the branching variable.
double value() const
Returns the value of the branching variable.
ValBranchRule(Master *master, int variable, double value)
Creates a branching rule for setting variable to value.
int variable_
The branching variable.
The linear program of a subproblem.
Base class for branching rules.
Abstract base class for all branching rules.
virtual void unExtract(LpSub *lp) override
Should undo the modifictions of the linear programming relaxtion |lp|.
double value_
The value the branching variable is set to.