|
| Column (AbacusGlobal *glob, double obj, double lb, double ub, int nnz, Array< int > &s, Array< double > &c) |
| Creates and initializes a column. More...
|
|
| Column (AbacusGlobal *glob, double obj, double lb, double ub, SparVec &vec) |
| Creates a column initialized by a sparse vector vec. More...
|
|
| Column (AbacusGlobal *glob, int maxNnz) |
| Creates an uninitialized column. More...
|
|
| ~Column () |
|
void | copy (const Column &col) |
| Copies column col. More...
|
|
double | lBound () const |
| Returns the lower bound of the column. More...
|
|
void | lBound (double l) |
| Sets the lower bound of the column to l. More...
|
|
double | obj () const |
| Returns the objective function coefficient of the column. More...
|
|
void | obj (double c) |
| Sets the objective function coefficient of the column to c . More...
|
|
double | uBound () const |
| Returns the upper bound of the column. More...
|
|
void | uBound (double u) |
| Sets the upper bound of the column to u. 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...
|
|
|
static bool | ascii2bool (const string &str) |
| Converts the string str to a boolean value. More...
|
|
static bool | endsWith (const string &str, const string &end) |
| Returns true if str ends with end, false otherwise. More...
|
|
static double | fracPart (double x) |
| Returns the absolute value of the fractional part of x. More...
|
|
static const char * | onOff (bool value) |
| Converts a boolean variable to the strings "on" and "off". More...
|
|
void | rangeCheck (int i) const |
| Checks whether i is a valid index. More...
|
|
double * | coeff_ |
| The array storing the corresponding nonzero coefficients. More...
|
|
AbacusGlobal * | glob_ |
| A pointer to the corresponding global object. More...
|
|
int | nnz_ |
| The number of stored elements ("nonzeros"). More...
|
|
double | reallocFac_ |
| If a new element is inserted but the sparse vector is full, then its size is increased by reallocFac_ percent. More...
|
|
int | size_ |
| The maximal number of nonzero coefficients which can be stored without reallocation. More...
|
|
int * | support_ |
| The array storing the nonzero variables. More...
|
|
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.