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