83 Constraint(master, sub, sense, rhs, dynamic, local, liftable),
84 row_(master, nnz, support, coeff, sense, rhs)
118 Constraint(master, sub, sense, rhs, dynamic, local, liftable),
119 row_(master, nnz, support, coeff, sense, rhs)
147 virtual void print(std::ostream &out)
const override {
CSense * sense()
Returns a pointer to the sense of the constraint.
variable identified by a number.
The parameterized class Array implements dynamic arrays of type E.
Representation of constraints in the row format.
virtual void print(std::ostream &out) const override
Writes the row format of the constraint on an output stream.
The master of the optimization.
virtual double rhs() const
Returns the right hand side of the constraint.
Variables identified by a number.
int number() const
Returns the number of the variable.
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.
Forms the virtual base class for all possible constraints given in pool format.
bool local() const
Returns true if the constraint/variable is only locally valid, false otherwise.
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.
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.
Forms the virtual base class for all possible variables given in pool format.
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 ~RowCon()
The destructor.
Row row_
The representation of the constraint.
const Row * row() const
Returns a const pointer to the object of the class Row representing the constraint.
const Sub * sub() const
Returns a const pointer to the subproblem associated with the constraint/variable.
double origCoeff(int i) const