|
| Column (AbacusGlobal *glob, double obj, double lb, double ub, int nnz, Array< int > &s, Array< double > &c) |
| Creates and initializes a column.
|
|
| Column (AbacusGlobal *glob, double obj, double lb, double ub, SparVec &vec) |
| Creates a column initialized by a sparse vector vec.
|
|
| Column (AbacusGlobal *glob, int maxNnz) |
| Creates an uninitialized column.
|
|
| ~Column () |
|
void | copy (const Column &col) |
| Copies column col.
|
|
double | lBound () const |
| Returns the lower bound of the column.
|
|
void | lBound (double l) |
| Sets the lower bound of the column to l.
|
|
double | obj () const |
| Returns the objective function coefficient of the column.
|
|
void | obj (double c) |
| Sets the objective function coefficient of the column to c .
|
|
double | uBound () const |
| Returns the upper bound of the column.
|
|
void | uBound (double u) |
| Sets the upper bound of the column to u.
|
|
| 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.
|
|
| SparVec (AbacusGlobal *glob, int size, double reallocFac=10.0) |
| Creates an empty sparse vector.
|
|
| SparVec (AbacusGlobal *glob, int size, int *s, double *c, double reallocFac=10.0) |
| Creates a sparse vector and initializes support and coefficients.
|
|
| SparVec (const SparVec &rhs) |
| Copy constructor.
|
|
| ~SparVec () |
| The destructor.
|
|
void | clear () |
| Removes all nonzeros from the sparse vector.
|
|
double | coeff (int i) const |
|
void | copy (const SparVec &vec) |
| Copies vector vec.
|
|
void | insert (int s, double c) |
| Adds a new support/coefficient pair to the vector.
|
|
void | leftShift (ArrayBuffer< int > &del) |
| Deletes the elements listed in a buffer from the sparse vector.
|
|
int | nnz () const |
| Returns the number of nonzero elements.
|
|
double | norm () |
| Returns the Euclidean norm of the sparse vector.
|
|
SparVec & | operator= (const SparVec &rhs) |
| The assignment operator.
|
|
double | origCoeff (int i) const |
|
void | realloc () |
| Increases the size of the sparse vector by reallocFac_ percent of the original size.
|
|
void | realloc (int newSize) |
| Reallocates the sparse vector to a given length.
|
|
void | rename (Array< int > &newName) |
| Replaces the index of the support by new names.
|
|
int | size () const |
| Returns the maximal length of the sparse vector.
|
|
int | support (int i) const |
|
virtual | ~AbacusRoot () |
| The destructor.
|
|
Representation of variables in column format.
The class Column refines SparVec for the representation of variables in column format. In the same way as the class Row refines the class SparVec for the representation of constraints in row format, the class Column refines SparVec for the representation of variables in column format. This class should not be confused with the class Variable for the abstract representation of variables within the framework. Again, there is a class ColVar derived from Variable having a member of type Column, but there are also other classes derived from Variable.
Definition at line 47 of file column.h.