75 :
Constraint(master, sub, sense, rhs, dynamic, local, liftable), number_(number)
89 return out <<
"number = " << rhs.
number_ <<
" rhs = " << rhs.
rhs_ << std::endl;
97 virtual double coeff(
const Variable *v)
const;
105 virtual void print(std::ostream &out)
const {
Some optimization problems, in particular column generation problems, are better described from a var...
Forms the virtual base class for all possible constraints given in pool format.
double rhs_
The right hand side of the constraint.
The master of the optimization.
Constraints defined by a number.
virtual void print(std::ostream &out) const
Writes the row format of the constraint on an output stream.
virtual ~NumCon()
The destructor.
NumCon(Master *master, const Sub *sub, CSense::SENSE sense, bool dynamic, bool local, bool liftable, int number, double rhs)
Creates a constraint defined by number.
int number_
The identification number of the constraint.
virtual double coeff(const Variable *v) const
Returns the coefficient of the variable v.
int number() const
Returns the identification number of the constraint.
friend std::ostream & operator<<(std::ostream &out, const NumCon &rhs)
The output operator writes the identification number and the right hand side to an output stream.
Forms the virtual base class for all possible variables given in pool format.
virtual double coeff(const Constraint *con) const
Computes the coefficient of the variable in the constraint con.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()