Go to the documentation of this file.
88 bool setRandom(
double density,
bool conformant);
292 bool display(
int secondaryDim);
499 bool setRandom(
double density,
bool conformant,
int iMin,
int iMax);
574 bool setRandom(
double density,
bool conformant,
int iMin,
int iMax);
672 bool setRandom(
double density,
bool conformant,
int iMin,
int iMax);
696 bool addIdx(
int status,
int idx);
714 int getEl(
int status,
int j);
791 bool setRandom(
double density,
bool conformant);
850 bool setRandom(
double density,
bool conformant);
905 bool setRandom(
double density,
bool conformant);
958 bool setRandom(
double density,
bool conformant);
988 if (x == y)
return true;
bool IsEqual(IntVector *that)
A method to compare two invectors.
~OtherOptionOrResultEnumeration()
std::string getDescription()
Get the description for a particular level in an enumeration.
a data structure for holding quadratic terms
bool setRandom(double density, bool conformant, int iMin, int iMax)
A function to make a random instance of this class.
bool bDeleteArrays
bDeleteArrays is true if we delete the arrays in garbage collection set to true by default
bool extendIntVector(int i)
append a value to an IntVector
int startSize
startSize is the dimension of the starts array
SparseVector()
Default Constructor.
bool addIdx(int status, int idx)
Add one index to a particular status.
bool bDeleteArrays
bDeleteArrays is true if we delete the arrays in garbage collection set to true by default
double * hessValues
hessValues is a double array of the Hessian values.
int getBasisDense(int *resultArray, int dim, bool flipIdx)
Get the entire array of basis status in dense form.
bool deepCopyFrom(IntVector *that)
A function to make a deep copy of an instance of this class.
std::string unit
the unit in which CPU speed is measured
bool setIntVector(int status, int *i, int ni)
Set the indices for a particular status.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
double * values
values holds a double array of value elements in coefMatrix (AMatrix), which contains nonzero element...
bool IsEqual(TimeSpan *that)
A function to check for the equality of two objects.
int hessDimension
hessDimension is the number of nonzeros in each array.
double value
the CPU speed (expressed in multiples of unit)
bool bDeleteArrays
bDeleteArrays is true if we delete the arrays in garbage collection set to true by default
bool bDeleteArrays
bDeleteArrays is true if we delete the arrays in garbage collection set to true by default
bool deepCopyFrom(OtherOptionOrResultEnumeration *that)
A function to make a deep copy of an instance of this class.
a sparse matrix data structure
bool isColumnMajor
isColumnMajor holds whether the coefMatrix (AMatrix) holding linear program data is stored by column.
~StorageCapacity()
Class destructor.
a double vector data structure
int startSize
startSize is the dimension of the starts array – should equal number of rows + 1
SparseIntVector()
Default Constructor.
int * varOneIndexes
varOneIndexes holds an integer array of the first variable indexes of all the quadratic terms.
OtherOptionOrResultEnumeration()
bool deepCopyFrom(TimeSpan *that)
A function to make a deep copy of an instance of this class.
int getEl(int j)
get an entry in the data array of an IntVector
bool IsEqual(CPUSpeed *that)
A function to check for the equality of two objects.
int * starts
starts holds an integer array of start elements, each start element points to the start of partials f...
bool setRandom(double density, bool conformant, int iMin, int iMax)
A function to make a random instance of this class.
int * indexes
indexes holds an integer array of indexes whose corresponding values are nonzero.
int idx
idx holds the index of an entity (such as a variable, constraint, objective) that is part of a sparse...
std::string getValue()
Get the value for a particular level in an enumeration.
bool bDeleteArrays
bDeleteArrays is true if we delete the arrays in garbage collection set to true by default
~TimeSpan()
Class destructor.
QuadraticTerms()
Default constructor.
std::string description
additional description about the CPU speed
double * values
values holds a double array of nonzero partial derivatives
SparseJacobianMatrix()
Default constructor.
CPUSpeed()
Default constructor.
an integer Vector data structure
~SparseHessianMatrix()
Default destructor.
int * indexes
indexes holds an integer array of variable indices.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool IsEqual(CPUNumber *that)
A function to check for the equality of two objects.
int * hessColIdx
hessColIdx is an integer array of column indices in the range 0, ..., n - 1.
int * starts
starts holds an integer array of start elements in coefMatrix (AMatrix), which points to the start of...
StorageCapacity()
Default constructor.
bool getIntVector(int status, int *i)
Get the entire array of indices for a particular status.
The in-memory representation of a SparseHessianMatrix..
~CPUSpeed()
Class destructor.
bool setOtherOptionOrResultEnumeration(std::string value, std::string description, int *i, int ni)
Set the indices for a particular level in an enumeration.
bool deepCopyFrom(CPUNumber *that)
A function to make a deep copy of an instance of this class.
bool display(int secondaryDim)
This method displays data structure in the matrix format.
bool IsEqual(OtherOptionOrResultEnumeration *that)
A function to check for the equality of two objects.
bool IsEqual(StorageCapacity *that)
A function to check for the equality of two objects.
std::string description
additional description about the storage
~CPUNumber()
Class destructor.
bool bDeleteArrays
bDeleteArrays is true if we delete the arrays in garbage collection set to true by default
bool bDeleteArrays
bDeleteArrays is true if we delete the arrays in garbage collection set to true by default
std::string unit
the unit in which time is measured
bool deepCopyFrom(CPUSpeed *that)
A function to make a deep copy of an instance of this class.
SparseMatrix()
Default constructor.
double value
value is a double that holds the value of the entity
a sparse vector data structure for integer vectors
std::string description
additional description about the CPU
bool OSIsEqual(double x, double y)
a data structure to represent an LP basis on both input and output
int value
the number of CPUs
bool deepCopyFrom(BasisStatus *that)
A function to make a deep copy of an instance of this class.
a sparse vector data structure
~SparseJacobianMatrix()
Default destructor.
double * coefficients
coefficients holds a double array all the quadratic term coefficients.
int * values
values holds an integer array of nonzero values.
TimeSpan()
Default constructor.
int getNumberOfEl(int status)
Get the number of indices for a particular status.
bool IsEqual(DoubleVector *that)
int number
number is the number of elements in the indexes and values arrays.
int * rowIndexes
rowIndexes holds an integer array of row indexes of all the quadratic terms.
the StorageCapacity class.
~SparseVector()
Default destructor.
int number
number is the number of elements in the indexes and values arrays.
SparseHessianMatrix()
Default constructor.
std::string unit
the unit in which storage capacity is measured
bool OSIsnan(double x)
checks whether a given double is NaN
A commonly used structure holding an index-value pair.
int valueSize
valueSize is the dimension of the values array
bool setRandom(double density, bool conformant, int iMin, int iMax)
A function to make a random instance of this class.
int * conVals
conVals holds an integer array of integers, conVals[i] is the number of constant terms in the gradien...
int getNumberOfEl()
get the dimension of an IntVector
~SparseIntVector()
Default destructor.
bool setIntVector(int *i, int ni)
set values into an IntVector
double * values
values holds a double array of nonzero values.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
bool setRandom(double density, bool conformant)
A function to make a random instance of this class.
double value
the number of units
CPUNumber()
Default constructor.
int valueSize
valueSize is the dimension of the indexes and values arrays
int * indexes
indexes holds an integer array of rowIdx (or colIdx) elements in coefMatrix (AMatrix).
int * hessRowIdx
hessRowIdx is an integer array of row indices in the range 0, ..., n - 1.
bool deepCopyFrom(StorageCapacity *that)
A function to make a deep copy of an instance of this class.
a sparse Jacobian matrix data structure
int * indexes
indexes holds an integer array of indexes whose corresponding values are listed in the same order in ...
int * varTwoIndexes
varTwoIndexes holds an integer array of the second variable indexes of all the quadratic terms.
int getEl(int status, int j)
Get one entry in the array of indices for a particular status.
double value
the number of units of storage capacity
~SparseMatrix()
Default destructor.
bool IsEqual(BasisStatus *that)
A function to check for the equality of two objects.
This file defines the OSnLNode class along with its derived classes.