|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
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 {
double rhs_
The right hand side of the constraint.
Constraints defined by a number.
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.
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.
int number_
The identification number of the constraint.
virtual void print(std::ostream &out) const
Writes the row format of the constraint on an output stream.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Forms the virtual base class for all possible constraints given in pool format.
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() const
Returns the identification number of the constraint.
virtual double coeff(const Variable *v) const
Returns the coefficient of the variable v.
The master of the optimization.