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