|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
147 virtual void print(std::ostream &out)
const override {
bool local() const
Returns true if the constraint/variable is only locally valid, false otherwise.
Row row_
The representation of the constraint.
double origCoeff(int i) const
const Row * row() const
Returns a const pointer to the object of the class Row representing the constraint.
RowCon(Master *master, const Sub *sub, CSense::SENSE sense, int nnz, int *support, double *coeff, double rhs, bool dynamic, bool local, bool liftable)
Creates a row constraint.
const Sub * sub() const
Returns a const pointer to the subproblem associated with the constraint/variable.
virtual double rhs() const
Returns the right hand side of the constraint.
variable identified by a number.
virtual void print(std::ostream &out) const override
Writes the row format of the constraint on an output stream.
int number() const
Returns the number of the variable.
bool liftable() const
Checks if the constraint is liftable.
RowCon(Master *master, const Sub *sub, CSense::SENSE sense, int nnz, const Array< int > &support, const Array< double > &coeff, double rhs, bool dynamic, bool local, bool liftable)
Creates a row constraint.
virtual double coeff(const Variable *v) const override
Computes the coefficient of a variable which must be of type NumVar.
virtual bool dynamic() const
Return true if the constraint/variable is dynamic.
Implements constraints stored in the class Row.
Row * row()
Returns a pointer to the object of the class Row representing the constraint.
The parameterized class Array implements dynamic arrays of type E.
Representation of constraints in the row format.
Forms the virtual base class for all possible variables given in pool format.
CSense * sense()
Returns a pointer to the sense of the constraint.
Variables identified by a number.
Forms the virtual base class for all possible constraints given in pool format.
virtual ~RowCon()
The destructor.
The master of the optimization.