6.35 ABA_COLUMN Class Reference

class ABA_COLUMN refines ABA_SPARVEC for the representation of variables in column format.

#include <column.h>

Inheritance diagram for ABA_COLUMN::


PIC


Public Member Functions

Private Attributes

Friends

6.35.1 Detailed Description

class ABA_COLUMN refines ABA_SPARVEC for the representation of variables in column format.

Definition at line 44 of file column.h.

6.35.2 Constructor & Destructor Documentation

6.35.2.1 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.

Parameters:

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|.

6.35.2.2 ABA_COLUMN::ABA_COLUMN (ABA_GLOBAL * glob, int maxNnz)

Another constructor generating an uninitialized column.

Parameters:

glob
A pointer to the corresponding global object.
maxNnz
The maximal number of nonzero elements that can be stored in the row.

6.35.2.3 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.

Parameters:

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.

6.35.2.4 ABA_COLUMN::~ABA_COLUMN ()

6.35.3 Member Function Documentation

6.35.3.1 double ABA_COLUMN::obj () const [inline]

Returns:

The objective function coefficient of the column.

Definition at line 172 of file column.h.

6.35.3.2 void ABA_COLUMN::obj (double c) [inline]

This version of the function obj() sets the objective function coefficient of the column.

Parameters:

c
The new value of the objective function coefficient.

Definition at line 177 of file column.h.

6.35.3.3 double ABA_COLUMN::lBound () const [inline]

Returns:

The lower bound of the column.

Definition at line 182 of file column.h.

6.35.3.4 void ABA_COLUMN::lBound (double l) [inline]

This version of the function lBound() sets the lower bound of the column.

Parameters:

l
The new value of the lower bound.

Definition at line 187 of file column.h.

6.35.3.5 double ABA_COLUMN::uBound () const [inline]

Returns:

The upper bound of the column.

Definition at line 192 of file column.h.

6.35.3.6 void ABA_COLUMN::uBound (double u) [inline]

This version of the function uBound() sets the upper bound of the column.

Parameters:

u
The new value of the upper bound.

Definition at line 197 of file column.h.

6.35.3.7 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.

Parameters:

col
The column that is copied.

6.35.4 Friends And Related Function Documentation

6.35.4.1 ostream& operator<< (ostream & out, const ABA_COLUMN & rhs) [friend]

The output operator.

Returns:

A reference to the output stream.

Parameters:

out
The output stream.
rhs
The column being output.

6.35.5 Member Data Documentation

6.35.5.1 double ABA_COLUMN::obj_ [private]

The objective function coefficient of the column.

Definition at line 160 of file column.h.

6.35.5.2 double ABA_COLUMN::lBound_ [private]

The lower bound of the column.

Definition at line 164 of file column.h.

6.35.5.3 double ABA_COLUMN::uBound_ [private]

The upper bound of the column.

Definition at line 168 of file column.h.

The documentation for this class was generated from the following file: