In file doc.dxx:

class LPColSet : protected SVSet

Set of LP columns

Inheritance:


Public Fields

typedef SVSet::Key Key

Public Methods

int isConsistent ()

Public

Extension
void add (const LPCol& col)
void add (Key& key, const LPCol& col)
add col to LPColSet.
void add (double obj, double lower, const SVector& colVector, double upper)
void add (Key& key, double obj, double lower, const SVector& colVector, double upper )
add LPCol consisting of lower, colVector and upper to LPColSet
void add ( const LPColSet& set )
void add (Key key[], const LPColSet& set )
add all LPCols of set to LPColSet.
void add2 (Key k, int n, int idx[], double val[])
void add2 (int i, int n, int idx[], double val[])
add n nonzero (idx, val) to i-th colVector..
SVector& create (int nonzeros=0, double obj=1, double lw=0, double upp=1)
SVector& create (Key& nkey, int nonzeros=0, double obj=1, double low=0, double up=1)
Create new LPCol with specified arguments and return a reference to its column vector
Inquiry
int num ()
Return maximum number of LPCols currently in LPColSet.
int max ()
Return maximum number of LPCols currently fitting into LPColSet.
const Vector& obj ()
Vector& obj ()
return vector of obj values.
double obj ( int i )
double& obj ( int i )
return obj of i-th LPCol in LPColSet.
double obj ( Key k )
double& obj ( Key k )
return obj of k-th LPCol in LPColSet.
const Vector& lower ()
Vector& lower ()
return vector of lower values.
double lower ( int i )
double& lower ( int i )
return lower of i-th LPCol in LPColSet.
double lower ( Key k )
double& lower ( Key k )
return lower of k-th LPCol in LPColSet.
const Vector& upper ()
Vector& upper ()
return vector of upper values.
double upper ( int i )
double& upper ( int i )
return upper of i-th LPCol in LPColSet.
double upper ( Key k )
double& upper ( Key k )
return upper of k-th LPCol in LPColSet.
SVector& colVector ( int i )
const SVector& colVector ( int i )
return colVector of i-th LPCol in LPColSet.
const SVector& colVector ( Key k )
SVector& colVector ( Key k )
return colVector of k-th LPCol in LPColSet.
Key key ( int i )
return Key of i-th LPCol in LPColSet.
int number ( Key k )
return number of k-th LPCol in LPColSet.
int has ( Key k )
does Key k belong to LPColSet?.
Memory Management
void reMax (int newmax = 0)
int memSize ()
used nonzero memory.
int memMax ()
length of nonzero memory.
void memRemax (int newmax)
reset length of nonzero memory.
void memPack ()
garbage collection in nonzero memory.
LPColSet& operator= ( const LPColSet& rs )
LPColSet ( int max = -1, int memmax = -1 )
Shrinking
void remove (int i)
remove i-th LPCol.
void remove (Key k)
remove k-th LPCol.
void remove (int perm[])
remove multiple elements.
void remove (Key keys[], int n)
void remove (int nums[], int n)
void remove (Key keys[], int n, int* perm)
void remove (int nums[], int n, int* perm)
remove n LPCols from set.
void clear ()
remove all LPCols.

Inherited from SVSet:

Public

Access

SVector& operator[](int n)
const SVector& operator[](int n)
SVector& operator[](Key k)
const SVector& operator[](Key k)

Control Parameters

double factor
Sparse vector memory enlargment factor
double& memFactor
Nonzero element memory enlargment factor

Extension

void add(const SVector& svec)
Add SVector svec to the set
void add(Key& nkey, const SVector& svec)
Add svec to SVSet
void add(const SVector svec[], int n)
Add all n SVectors in the array svec to the set.
void add(Key nkey[], const SVector svec[], int n)
Add n SVectors to SVSet
void add(const SVSet& set)
Add all SVectors in set to an SVSet.
void add(Key nkey[], const SVSet& set)
Add all SVectors of set to SVSet
SVector* create(int idxmax = -1)
Creates new SVector in set
SVector* create(Key& nkey, int idxmax = -1)
Creates new SVector in set
void xtend(SVector& svec, int newmax)
Extend svec to fit newmax nonzeros
void add2(SVector &svec, int idx, double val)
Add nonzero (idx, val) to svec of this SVSet
void add2(SVector &svec, int n, const int idx[], const double val[])
Add n nonzeros to svec of this SVSet

Memory Management

int memSize()
used nonzero memory.
int memMax()
length of nonzero memory.
void memRemax(int newmax)
reset length of nonzero memory.
void memPack()
garbage collection in nonzero memory.

Miscellaneous

void reMax(int newmax = 0)
reset maximum number of SVectors.
int isConsistent()
consistency check.
SVSet& operator=(const SVSet& rhs)
assignment operator.
SVSet(const SVSet& old)
copy constructor.
SVSet(int max = -1, int memmax = -1, double fac = 1.1, double memFac = 1.2)
default constructor.

Shrinking

void remove(Key removekey)
void remove(int removenum)
void remove(SVector *svec)
remove one SVector from set.
void remove(int perm[])
remove multiple elements
void remove(Key keys[], int n)
void remove(int nums[], int n)
void remove(Key keys[], int n, int* perm)
void remove(int nums[], int n, int* perm)
Remove n SVectors from set
void clear()
remove all SVectors from set.

Documentation

Set of LP columns. Class LPColSet implements a set of LPCols. Unless for memory limitations, any number of LPCols may be added to an LPColSet. Single or multiple LPCols may be added to an LPColSet, where each method add() comes with two different signatures. One with an one without a parameter, used for returning the Keys assigned to the new LPCols by the set. See Key for a more detailed description of the concept of Keys. For the concept of renumbering LPCols within an LPColSet after removal of some LPCols see DataSet.

typedef SVSet::Key Key

Inquiry

int num()
Return maximum number of LPCols currently in LPColSet.

int max()
Return maximum number of LPCols currently fitting into LPColSet.

const Vector& obj()

Vector& obj()
return vector of obj values.

double obj( int i )

double& obj( int i )
return obj of i-th LPCol in LPColSet.

double obj( Key k )

double& obj( Key k )
return obj of k-th LPCol in LPColSet.

const Vector& lower()

Vector& lower()
return vector of lower values.

double lower( int i )

double& lower( int i )
return lower of i-th LPCol in LPColSet.

double lower( Key k )

double& lower( Key k )
return lower of k-th LPCol in LPColSet.

const Vector& upper()

Vector& upper()
return vector of upper values.

double upper( int i )

double& upper( int i )
return upper of i-th LPCol in LPColSet.

double upper( Key k )

double& upper( Key k )
return upper of k-th LPCol in LPColSet.

SVector& colVector( int i )

const SVector& colVector( int i )
return colVector of i-th LPCol in LPColSet.

const SVector& colVector( Key k )

SVector& colVector( Key k )
return colVector of k-th LPCol in LPColSet.

Key key( int i )
return Key of i-th LPCol in LPColSet.

int number( Key k )
return number of k-th LPCol in LPColSet.

int has( Key k )
does Key k belong to LPColSet?.

Extension
All extension methods come with two signatures, one of which providing a parameter to return the assigned Key(s). See DataSet for a more detailed description. All extension methods are designed to automatically realloc memory if required.

void add(const LPCol& col)

void add(Key& key, const LPCol& col)
add col to LPColSet.

void add(double obj, double lower, const SVector& colVector, double upper)

void add(Key& key, double obj, double lower, const SVector& colVector, double upper )
add LPCol consisting of lower, colVector and upper to LPColSet

void add( const LPColSet& set )

void add(Key key[], const LPColSet& set )
add all LPCols of set to LPColSet.

void add2(Key k, int n, int idx[], double val[])

void add2(int i, int n, int idx[], double val[])
add n nonzero (idx, val) to i-th colVector..

SVector& create(int nonzeros=0, double obj=1, double lw=0, double upp=1)

SVector& create(Key& nkey, int nonzeros=0, double obj=1, double low=0, double up=1)
Create new LPCol with specified arguments and return a reference to its column vector

Shrinking
See DataSet for a description of the renumbering of the remaining LPCols in a LPColSet after the call of a removal method.

void remove(int i)
remove i-th LPCol.

void remove(Key k)
remove k-th LPCol.

void remove(int perm[])
remove multiple elements.

void remove(Key keys[], int n)

void remove(int nums[], int n)

void remove(Key keys[], int n, int* perm)

void remove(int nums[], int n, int* perm)
remove n LPCols from set.

void clear()
remove all LPCols.

Memory Management
See SVSet for a description of the memory management methods.

void reMax(int newmax = 0)

int memSize()
used nonzero memory.

int memMax()
length of nonzero memory.

void memRemax(int newmax)
reset length of nonzero memory.

void memPack()
garbage collection in nonzero memory.

LPColSet& operator=( const LPColSet& rs )

LPColSet( int max = -1, int memmax = -1 )

int isConsistent()


Direct child classes:
SPxLP
See Also:
DataSet, DataSet::Key
alphabetic index hierarchy of classes


generated by doc++