|
| Row (AbacusGlobal *glob, int nnz, const Array< int > &s, const Array< double > &c, const CSense &sense, double r) |
| Creates a row and initializes it. More...
|
|
| 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. More...
|
|
| Row (AbacusGlobal *glob, int nnz, int *s, double *c, CSense::SENSE sense, double r) |
| Creates a row and initializes it using C-style arrays. More...
|
|
| Row (AbacusGlobal *glob, int size) |
| Creates a row without initialization of the nonzeros of the row. More...
|
|
| ~Row () |
| The destructor. More...
|
|
void | copy (const Row &row) |
| Copies row . More...
|
|
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 hand side. More...
|
|
double | rhs () const |
| Returns the right hand side stored in the row format. More...
|
|
void | rhs (double r) |
| Sets the right hand side of the row to r. More...
|
|
CSense * | sense () |
| Returns a pointer to the sense of the row. More...
|
|
const CSense * | sense () const |
| Returns a const pointer to the sense of the row. More...
|
|
void | sense (CSense &s) |
| Sets the sense of the row to s. More...
|
|
void | sense (CSense::SENSE s) |
| Sets the sense of the row to s. More...
|
|
| SparVec (AbacusGlobal *glob, int size, const Array< int > &s, const Array< double > &c, double reallocFac=10.0) |
| Creates a sparse vector and initializes support and coefficients. More...
|
|
| SparVec (AbacusGlobal *glob, int size, double reallocFac=10.0) |
| Creates an empty sparse vector. More...
|
|
| SparVec (AbacusGlobal *glob, int size, int *s, double *c, double reallocFac=10.0) |
| Creates a sparse vector and initializes support and coefficients. More...
|
|
| SparVec (const SparVec &rhs) |
| Copy constructor. More...
|
|
| ~SparVec () |
| The destructor. More...
|
|
void | clear () |
| Removes all nonzeros from the sparse vector. More...
|
|
double | coeff (int i) const |
|
void | copy (const SparVec &vec) |
| Copies vector vec. More...
|
|
void | insert (int s, double c) |
| Adds a new support/coefficient pair to the vector. More...
|
|
void | leftShift (ArrayBuffer< int > &del) |
| Deletes the elements listed in a buffer from the sparse vector. More...
|
|
int | nnz () const |
| Returns the number of nonzero elements. More...
|
|
double | norm () |
| Returns the Euclidean norm of the sparse vector. More...
|
|
SparVec & | operator= (const SparVec &rhs) |
| The assignment operator. More...
|
|
double | origCoeff (int i) const |
|
void | realloc () |
| Increases the size of the sparse vector by reallocFac_ percent of the original size. More...
|
|
void | realloc (int newSize) |
| Reallocates the sparse vector to a given length. More...
|
|
void | rename (Array< int > &newName) |
| Replaces the index of the support by new names. More...
|
|
int | size () const |
| Returns the maximal length of the sparse vector. More...
|
|
int | support (int i) const |
|
virtual | ~AbacusRoot () |
| The destructor. More...
|
|
Representation of constraints in the row format.
This class refines its base class SparVec for the representation of constraints in the row format. This class plays an essential role in the interface with the LP-solver.
This class should not be confused with the class Constraint, which is an abstract class for the representation of constraints within the framework. Moreover, the class RowCon derived from the class Constraint provides a constraint representation in row format, but there are also other representations of constraints.
Definition at line 51 of file row.h.