38#pragma GCC visibility push(default)
76 :
Constraint(master, sub, sense, rhs, dynamic, local, liftable), number_(number)
90 return out <<
"number = " << rhs.
number_ <<
" rhs = " << rhs.
rhs_ << std::endl;
98 virtual double coeff(
const Variable *v)
const;
106 virtual void print(std::ostream &out)
const {
119#pragma GCC visibility pop
123#pragma GCC visibility push(default)
133#pragma GCC visibility pop
Some optimization problems, in particular column generation problems, are better described from a var...
virtual double coeff(const Constraint *con) const
Returns the coefficient of the constraint con.
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.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...