76 :
RowCon(master, sub, sense, nnz, support, coeff, rhs, dynamic, local, liftable)
109 :
RowCon(master, sub, sense, nnz, support, coeff, rhs, dynamic, local, liftable)
143 double *x)
const override;
CSense * sense()
Returns a pointer to the sense of the constraint.
virtual int genRow(Active< Variable, Constraint > *var, Row &row) const override
Generates the row format of the constraint associated with the variable set var.
Representation of constraints in the row format.
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.
The master of the optimization.
Implements the sets of active constraints and variables which are associated with each subproblem...
virtual double rhs() const
Returns the right hand side of the constraint.
virtual ~SRowCon()
The destructor.
Constraints using row with static variable set.
Row * row()
Returns a pointer to the object of the class Row representing the constraint.
virtual double coeff(const Variable *v) const override
Computes the coefficient of a variable which must be of type NumVar.
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.
bool local() const
Returns true if the constraint/variable is only locally valid, false otherwise.
virtual bool dynamic() const
Return true if the constraint/variable is dynamic.
bool liftable() const
Checks if the constraint is liftable.
Implements constraints stored in the class Row.
void copy(const Row &row)
Copies row.
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.
int nnz() const
Returns the number of nonzero elements.
const Sub * sub() const
Returns a const pointer to the subproblem associated with the constraint/variable.