|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Implements the sets of active constraints and variables which are associated with each subproblem.
bool local() const
Returns true if the constraint/variable is only locally valid, false otherwise.
Row row_
The representation of the constraint.
virtual double slack(Active< Variable, Constraint > *variables, double *x) const override
Computes the slack of a vector associated with the variable set variables.
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.
int nnz() const
Returns the number of nonzero elements.
void copy(const Row &row)
Copies row.
bool liftable() const
Checks if the constraint is liftable.
virtual int genRow(Active< Variable, Constraint > *var, Row &row) const override
Generates the row format of the constraint associated with the variable set var.
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.
CSense * sense()
Returns a pointer to the sense of the constraint.
SRowCon(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.
Constraints using row with static variable set.
The master of the optimization.
SRowCon(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 ~SRowCon()
The destructor.