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