Global data and functions.
Representation of constraints in the row format.
void rhs(double r)
Sets the right hand side of the row to r.
CSense * sense()
Returns a pointer to the sense of the row.
friend ostream & operator<<(ostream &out, const Row &rhs)
The output operator.
Row(AbacusGlobal *glob, int nnz, int *s, double *c, CSense::SENSE sense, double r)
Creates a row and initializes it using C-style arrays.
double rhs_
The right hand side of the row.
void leftShift(ArrayBuffer< int > &del)
Deletes the elements listed in a buffer from the sparse vector.
Row(AbacusGlobal *glob, int size)
Creates a row without initialization of the nonzeros of the row.
double rhs() const
Returns the right hand side stored in the row format.
CSense sense_
The sense of the row.
Row(AbacusGlobal *glob, int nnz, const Array< int > &s, const Array< double > &c, const CSense::SENSE sense, double r)
Creates a row and initializes it.
SENSE sense() const
Returns the sense of the constraint.
int size() const
Returns the maximal length of the sparse vector.
void copy(const Row &row)
Copies row.
Row(AbacusGlobal *glob, int nnz, const Array< int > &s, const Array< double > &c, const CSense &sense, double r)
Creates a row and initializes it.
void sense(CSense &s)
Sets the sense of the row to s.
void delInd(ArrayBuffer< int > &buf, double rhsDelta)
Removes the indices listed in buf from the support of the row and subtracts rhsDelta from its right h...
const CSense * sense() const
Returns a const pointer to the sense of the row.
void sense(CSense::SENSE s)
Sets the sense of the row to s.
int nnz() const
Returns the number of nonzero elements.