#include <column.h>
Inheritance diagram for ABA_COLUMN:
Public Member Functions | |
ABA_COLUMN (ABA_GLOBAL *glob, double obj, double lb, double ub, int nnz, ABA_ARRAY< int > &s, ABA_ARRAY< double > &c) | |
ABA_COLUMN (ABA_GLOBAL *glob, int maxNnz) | |
ABA_COLUMN (ABA_GLOBAL *glob, double obj, double lb, double ub, ABA_SPARVEC &vec) | |
~ABA_COLUMN () | |
double | obj () const |
void | obj (double c) |
This version of the function obj() sets the objective function coefficient of the column. | |
double | lBound () const |
void | lBound (double l) |
This version of the function lBound() sets the lower bound of the column. | |
double | uBound () const |
void | uBound (double u) |
This version of the function uBound() sets the upper bound of the column. | |
void | copy (const ABA_COLUMN &col) |
Is very similar to the assignment operator, yet the columns do not have to be of equal size. A reallocation is performed if required. | |
Private Attributes | |
double | obj_ |
double | lBound_ |
double | uBound_ |
Friends | |
ostream & | operator<< (ostream &out, const ABA_COLUMN &rhs) |
Definition at line 44 of file column.h.
ABA_COLUMN::ABA_COLUMN | ( | ABA_GLOBAL * | glob, | |
double | obj, | |||
double | lb, | |||
double | ub, | |||
int | nnz, | |||
ABA_ARRAY< int > & | s, | |||
ABA_ARRAY< double > & | c | |||
) |
A constructor.
glob | A pointer to the corresponding global object. | |
obj | {The objective function coefficient. | |
lb | The lower bound. | |
ub | The upper bound. | |
nnz | The number of nonzero elements stored in the arrays |s| and |c|. | |
s | An array of the nonzero elements of the column. | |
c | An array of the nonzero coefficients associated with the elements of |s|. |
ABA_COLUMN::ABA_COLUMN | ( | ABA_GLOBAL * | glob, | |
int | maxNnz | |||
) |
Another constructor generating an uninitialized column.
glob | A pointer to the corresponding global object. | |
maxNnz | The maximal number of nonzero elements that can be stored in the row. |
ABA_COLUMN::ABA_COLUMN | ( | ABA_GLOBAL * | glob, | |
double | obj, | |||
double | lb, | |||
double | ub, | |||
ABA_SPARVEC & | vec | |||
) |
A constructor using a sparse vector for the initialization.
glob | A pointer to the corresponding global object. | |
obj | The objective function coefficient. | |
lb | The lower bound. | |
ub | The upper bound. | |
vec | A sparse vector storing the support and the coefficients of the column. |
ABA_COLUMN::~ABA_COLUMN | ( | ) |
double ABA_COLUMN::obj | ( | ) | const [inline] |
void ABA_COLUMN::obj | ( | double | c | ) | [inline] |
double ABA_COLUMN::lBound | ( | ) | const [inline] |
void ABA_COLUMN::lBound | ( | double | l | ) | [inline] |
double ABA_COLUMN::uBound | ( | ) | const [inline] |
void ABA_COLUMN::uBound | ( | double | u | ) | [inline] |
void ABA_COLUMN::copy | ( | const ABA_COLUMN & | col | ) |
Is very similar to the assignment operator, yet the columns do not have to be of equal size. A reallocation is performed if required.
col | The column that is copied. |
ostream& operator<< | ( | ostream & | out, | |
const ABA_COLUMN & | rhs | |||
) | [friend] |
The output operator.
out | The output stream. | |
rhs | The column being output. |
double ABA_COLUMN::obj_ [private] |
double ABA_COLUMN::lBound_ [private] |
double ABA_COLUMN::uBound_ [private] |