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