a data structure to represent an LP basis on both input and output More...
#include <OSGeneral.h>
Public Member Functions | |
BasisStatus () | |
~BasisStatus () | |
bool | IsEqual (BasisStatus *that) |
A function to check for the equality of two objects. | |
bool | setRandom (double density, bool conformant, int iMin, int iMax) |
A function to make a random instance of this class. | |
bool | deepCopyFrom (BasisStatus *that) |
A function to make a deep copy of an instance of this class. | |
bool | setIntVector (int status, int *i, int ni) |
Set the indices for a particular status. | |
bool | addIdx (int status, int idx) |
Add one index to a particular status. | |
int | getNumberOfEl (int status) |
Get the number of indices for a particular status. | |
int | getEl (int status, int j) |
Get one entry in the array of indices for a particular status. | |
bool | getIntVector (int status, int *i) |
Get the entire array of indices for a particular status. | |
int | getBasisDense (int *resultArray, int dim, bool flipIdx) |
Get the entire array of basis status in dense form. | |
Public Attributes | |
IntVector * | basic |
IntVector * | atLower |
IntVector * | atUpper |
IntVector * | atEquality |
IntVector * | isFree |
IntVector * | superbasic |
IntVector * | unknown |
a data structure to represent an LP basis on both input and output
Definition at line 600 of file OSGeneral.h.
BasisStatus::BasisStatus | ( | ) |
Definition at line 758 of file OSGeneral.cpp.
BasisStatus::~BasisStatus | ( | ) |
Definition at line 773 of file OSGeneral.cpp.
bool BasisStatus::IsEqual | ( | BasisStatus * | that | ) |
A function to check for the equality of two objects.
Definition at line 1175 of file OSGeneral.cpp.
bool BasisStatus::setRandom | ( | double | density, | |
bool | conformant, | |||
int | iMin, | |||
int | iMax | |||
) |
A function to make a random instance of this class.
density,: | corresponds to the probability that a particular child element is created | |
conformant,: | if true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" attributes and <XXX> children) | |
iMin,: | lowest index value (inclusive) that an entry in this basis can take | |
iMax,: | greatest index value (inclusive) that an entry in this basis can take |
Definition at line 1219 of file OSGeneral.cpp.
bool BasisStatus::deepCopyFrom | ( | BasisStatus * | that | ) |
A function to make a deep copy of an instance of this class.
that,: | the instance from which information is to be copied |
Definition at line 1263 of file OSGeneral.cpp.
bool BasisStatus::setIntVector | ( | int | status, | |
int * | i, | |||
int | ni | |||
) |
Set the indices for a particular status.
status | is a string representing the allowed statuses (as defined in enumeration ENUM_BASIS_STATUS - see below) | |
i | contains the array of indices | |
ni | contains the number of elements in i |
Definition at line 816 of file OSGeneral.cpp.
bool BasisStatus::addIdx | ( | int | status, | |
int | idx | |||
) |
Add one index to a particular status.
status | is a string representing the allowed statuses (as defined in enumeration ENUM_BASIS_STATUS - see below) | |
idx | contains the value of the index |
Definition at line 867 of file OSGeneral.cpp.
int BasisStatus::getNumberOfEl | ( | int | status | ) |
Get the number of indices for a particular status.
status | is a string representing the allowed statuses (at present "basic", "atLower", "atUpper", "isFree", "superbasic", "unknown") |
Definition at line 957 of file OSGeneral.cpp.
int BasisStatus::getEl | ( | int | status, | |
int | j | |||
) |
Get one entry in the array of indices for a particular status.
status | is an integer representing the allowed statuses (as governed by enumeration ENUM_BASIS_STATUS --- see below) | |
j | is the (zero-based) position of the entry within the array |
Definition at line 1002 of file OSGeneral.cpp.
bool BasisStatus::getIntVector | ( | int | status, | |
int * | i | |||
) |
Get the entire array of indices for a particular status.
status | is a string representing the allowed statuses (as governed by enumeration ENUM_BASIS_STATUS --- see below) | |
i | is the location where the user wants to store the array |
Definition at line 912 of file OSGeneral.cpp.
int BasisStatus::getBasisDense | ( | int * | resultArray, | |
int | dim, | |||
bool | flipIdx | |||
) |
Get the entire array of basis status in dense form.
resultArray | is the location where the user wants to store the array | |
dim | is the size of the resultArray | |
flipIdx | indicates whether the index values need to be flipped (used for representations of objective rows) |
Definition at line 1053 of file OSGeneral.cpp.
Definition at line 603 of file OSGeneral.h.
Definition at line 604 of file OSGeneral.h.
Definition at line 605 of file OSGeneral.h.
Definition at line 606 of file OSGeneral.h.
Definition at line 607 of file OSGeneral.h.
Definition at line 608 of file OSGeneral.h.
Definition at line 609 of file OSGeneral.h.