Loading...
Searching...
No Matches
SPxId Class Reference Generic Ids for LP rows or columns. More...
Inheritance diagram for SPxId:
![]()
Detailed DescriptionGeneric Ids for LP rows or columns. Both SPxColIds and SPxRowIds may be treated uniformly as SPxIds: Rows and columns are numbered from 0 to num()-1 and 0 to dim()-1 respectively. These numbers may be used to select individual rows or columns. However, these numbers may change if other rows or columns are added or removed. Further, each row or column of the problem matrix is assigned a SPxRowId or SPxColId, respectively. They are be used to select individual rows or columns just like numbers. In contrast to row and column numbers, ids remain unchanged for the time a row or column belongs to a SPxLP, no matter what other rows or columns are added to it or removed from it. Member Enumeration Documentation◆ Type
Constructor & Destructor Documentation◆ SPxId() [1/3]
default constructor. Constructs an invalid id. Definition at line 116 of file spxid.h. References DataKey::DataKey(), and INVALID. Referenced by operator!=(), operator<(), operator<<, operator=(), operator=(), and operator==(). ◆ SPxId() [2/3]constructs an id out of a column identifier Definition at line 120 of file spxid.h. References COL_ID, DataKey::DataKey(), and DataKey::idx. ◆ SPxId() [3/3]constructs an id out of a row identifier Definition at line 124 of file spxid.h. References DataKey::DataKey(), DataKey::idx, and ROW_ID. Member Function Documentation◆ inValidate()
◆ isSPxColId()
is id a column id? Definition at line 168 of file spxid.h. References DataKey::info. Referenced by SPxRowId::SPxRowId(). ◆ isSPxRowId()
is id a row id? Definition at line 163 of file spxid.h. References DataKey::info. Referenced by SPxSolverBase< Real >::coVector(), SPxSolverBase< Real >::enterVector(), SPxSolverBase< Real >::isBasic(), SPxColId::SPxColId(), and SPxSolverBase< Real >::vector(). ◆ isValid()
returns TRUE iff the id is a valid column or row identifier. Definition at line 153 of file spxid.h. References DataKey::info. Referenced by SPxSolverBase< Real >::coVector(), SPxSolverBase< Real >::enterVector(), SPxSolverBase< Real >::isBasic(), and SPxSolverBase< Real >::vector(). ◆ operator!=()
◆ operator<()
less then operator Definition at line 188 of file spxid.h. References DataKey::getIdx(), and SPxId(). ◆ operator=() [1/2]assignment operator Definition at line 129 of file spxid.h. References COL_ID, DataKey::info, and SPxId(). ◆ operator=() [2/2]assignment operator Definition at line 136 of file spxid.h. References DataKey::info, ROW_ID, and SPxId(). ◆ operator==()
◆ type()
returns the type of the id. Definition at line 148 of file spxid.h. References COL_ID, DataKey::info, INVALID, and ROW_ID. Referenced by operator<<. Friends And Related Symbol Documentation◆ operator<<
|