Dip
0.92.4
|
Class collecting pointers on data for OsiEmpty. More...
#include <OsiData.hpp>
Public Member Functions | |
void | convertBoundToSense (const double lower, const double upper, char &sense, double &right, double &range) const |
A quick inlined function to convert from the lb/ub style of constraint definition to the sense/rhs/range style. More... | |
void | convertBoundToSense (const double lower, const double upper, char &sense, double &right, double &range) const |
A quick inlined function to convert from the lb/ub style of constraint definition to the sense/rhs/range style. More... | |
Public Set/get methods | |
virtual void | setInfinity (const double givenInfinity) |
Set infinity. More... | |
double | getInfinity () const |
Get infinity. More... | |
virtual void | setNrow (const int givenNrow) |
Set nrow to the number of rows. More... | |
int | getNrow () const |
Get nrow. More... | |
virtual void | setNcol (const int givenNcol) |
Set ncol to the number of variables. More... | |
int | getNcol () const |
Get ncol. More... | |
virtual void | setMatrixByCol (const CoinPackedMatrix *givenMatrixByCol) |
Set matrixByCol to point on the coefficient matrix ordered by columns. More... | |
const CoinPackedMatrix * | getMatrixByCol () const |
Get matrixByCol. More... | |
virtual void | setMatrixByRow (const CoinPackedMatrix *givenMatrixByRow) |
Set matrixByRow to point on the coefficient matrix ordered by rows. More... | |
const CoinPackedMatrix * | getMatrixByRow () const |
Get matrixByRow. More... | |
virtual void | setObj (const double *givenObj) |
Set obj to point on a vector holding the objective coefficient values. More... | |
const double * | getObj () const |
Get obj. More... | |
virtual void | setColLower (const double *givenColLower) |
Set colLower to point on a vector holding the lower bounds on the variables. More... | |
const double * | getColLower () const |
Get colLower. More... | |
virtual void | setColUpper (const double *givenColUpper) |
Set colUpper to point on a vector holding the upper bounds on the variables. More... | |
const double * | getColUpper () const |
Get colUpper. More... | |
virtual void | setRowLower (const double *givenRowLower) |
Set rowLower to point on a vector holding the lower bounds on the constraints. More... | |
const double * | getRowLower () const |
Get rowLower. More... | |
virtual void | setRowUpper (const double *givenRowUpper) |
Set rowUpper to point on a vector holding the upper bounds on the constraints. More... | |
const double * | getRowUpper () const |
Get rowUpper. More... | |
const double * | getRowRhs () const |
Set rowRhs to point on a vector holding the right hand side of the constraints (for a ranged constraint, it contains the upper bound). More... | |
const double * | getRowRange () const |
Get rowRange. More... | |
const char * | getRowSense () const |
Get rowSense. More... | |
const double * | getRowActivity () const |
Set rowActivity to point on a vector holding the activity of the constraints (i.e. More... | |
virtual void | setColType (const char *givenColType) |
Set colType to point on a vector holding the type of the variables ('B', 'I', or 'C' for Binary, Integer and Continuous) More... | |
const char * | getColType () const |
Get colType. More... | |
virtual void | setPrimalSol (const double *givenPrimalSol) |
Set primal solution. More... | |
const double * | getPrimalSol () const |
Get primal solution. More... | |
void | initializeOtherData () |
initialize the non-const data More... | |
virtual void | setInfinity (const double givenInfinity) |
Set infinity. More... | |
double | getInfinity () const |
Get infinity. More... | |
virtual void | setNrow (const int givenNrow) |
Set nrow to the number of rows. More... | |
int | getNrow () const |
Get nrow. More... | |
virtual void | setNcol (const int givenNcol) |
Set ncol to the number of variables. More... | |
int | getNcol () const |
Get ncol. More... | |
virtual void | setMatrixByCol (const CoinPackedMatrix *givenMatrixByCol) |
Set matrixByCol to point on the coefficient matrix ordered by columns. More... | |
const CoinPackedMatrix * | getMatrixByCol () const |
Get matrixByCol. More... | |
virtual void | setMatrixByRow (const CoinPackedMatrix *givenMatrixByRow) |
Set matrixByRow to point on the coefficient matrix ordered by rows. More... | |
const CoinPackedMatrix * | getMatrixByRow () const |
Get matrixByRow. More... | |
virtual void | setObj (const double *givenObj) |
Set obj to point on a vector holding the objective coefficient values. More... | |
const double * | getObj () const |
Get obj. More... | |
virtual void | setColLower (const double *givenColLower) |
Set colLower to point on a vector holding the lower bounds on the variables. More... | |
const double * | getColLower () const |
Get colLower. More... | |
virtual void | setColUpper (const double *givenColUpper) |
Set colUpper to point on a vector holding the upper bounds on the variables. More... | |
const double * | getColUpper () const |
Get colUpper. More... | |
virtual void | setRowLower (const double *givenRowLower) |
Set rowLower to point on a vector holding the lower bounds on the constraints. More... | |
const double * | getRowLower () const |
Get rowLower. More... | |
virtual void | setRowUpper (const double *givenRowUpper) |
Set rowUpper to point on a vector holding the upper bounds on the constraints. More... | |
const double * | getRowUpper () const |
Get rowUpper. More... | |
const double * | getRowRhs () const |
Set rowRhs to point on a vector holding the right hand side of the constraints (for a ranged constraint, it contains the upper bound). More... | |
const double * | getRowRange () const |
Get rowRange. More... | |
const char * | getRowSense () const |
Get rowSense. More... | |
const double * | getRowActivity () const |
Set rowActivity to point on a vector holding the activity of the constraints (i.e. More... | |
virtual void | setColType (const char *givenColType) |
Set colType to point on a vector holding the type of the variables ('B', 'I', or 'C' for Binary, Integer and Continuous) More... | |
const char * | getColType () const |
Get colType. More... | |
virtual void | setPrimalSol (const double *givenPrimalSol) |
Set primal solution. More... | |
const double * | getPrimalSol () const |
Get primal solution. More... | |
void | initializeOtherData () |
initialize the non-const data More... | |
Constructors and destructors | |
OsiData (const double givenInfinity=DBL_MAX, const int &givenNrow=0, const int &givenNcol=0, const CoinPackedMatrix *givenMatrixByCol=NULL, const CoinPackedMatrix *givenMatrixByRow=NULL, const double *givenObj=NULL, const double *givenColLower=NULL, const double *givenColUpper=NULL, const double *givenRowLower=NULL, const double *givenRowUpper=NULL, const char *givenColType=NULL, const double *givenPrimalSol=NULL) | |
Default constructor. More... | |
virtual | ~OsiData () |
Destructor. More... | |
OsiData (const double givenInfinity=DBL_MAX, const int &givenNrow=0, const int &givenNcol=0, const CoinPackedMatrix *givenMatrixByCol=NULL, const CoinPackedMatrix *givenMatrixByRow=NULL, const double *givenObj=NULL, const double *givenColLower=NULL, const double *givenColUpper=NULL, const double *givenRowLower=NULL, const double *givenRowUpper=NULL, const char *givenColType=NULL, const double *givenPrimalSol=NULL) | |
Default constructor. More... | |
virtual | ~OsiData () |
Destructor. More... | |
Protected Attributes | |
Private member data | |
double | infinity |
Pointer on vector of characters for columns types. More... | |
int | nrow |
Pointer on vector of characters for columns types. More... | |
int | ncol |
Pointer on vector of characters for columns types. More... | |
CoinPackedMatrix const * | matrixByCol |
Pointer on vector of characters for columns types. More... | |
CoinPackedMatrix const * | matrixByRow |
Pointer on vector of characters for columns types. More... | |
const double * | obj |
Pointer on vector of characters for columns types. More... | |
const double * | colLower |
Pointer on vector of characters for columns types. More... | |
const double * | colUpper |
Pointer on vector of characters for columns types. More... | |
const double * | rowLower |
Pointer on vector of characters for columns types. More... | |
const double * | rowUpper |
Pointer on vector of characters for columns types. More... | |
const char * | colType |
Pointer on vector of characters for columns types. More... | |
const double * | primalSol |
Pointer on vector of characters for columns types. More... | |
double * | rowRhs |
Pointer on vector of characters for columns types. More... | |
double * | rowRange |
Pointer on vector of characters for columns types. More... | |
char * | rowSense |
Pointer on vector of characters for columns types. More... | |
double * | rowActivity |
Pointer on vector of characters for columns types. More... | |
Class collecting pointers on data for OsiEmpty.
Each generator may have a derived class to add additional pointers on data. If a data member is not used by a generator, the data member need not be defined (or may be NULL). Ownership of the data remains with the calling method.
Definition at line 22 of file OsiData.hpp.
|
inline |
Default constructor.
Definition at line 204 of file OsiData.hpp.
|
inlinevirtual |
Destructor.
Definition at line 231 of file OsiData.hpp.
References rowActivity, rowRange, rowRhs, and rowSense.
|
inline |
Default constructor.
Definition at line 204 of file OsiData2.hpp.
|
inlinevirtual |
Destructor.
Definition at line 231 of file OsiData2.hpp.
References rowActivity, rowRange, rowRhs, and rowSense.
|
inlinevirtual |
Set infinity.
Definition at line 30 of file OsiData.hpp.
References infinity.
Referenced by OsiNullSolverInterface::loadDataAndSolution().
|
inline |
Get infinity.
Definition at line 35 of file OsiData.hpp.
References infinity.
Referenced by convertBoundToSense(), and OsiNullSolverInterface::getInfinity().
|
inlinevirtual |
Set nrow to the number of rows.
Definition at line 38 of file OsiData.hpp.
References nrow.
Referenced by OsiNullSolverInterface::loadDataAndSolution().
|
inline |
Get nrow.
Definition at line 43 of file OsiData.hpp.
References nrow.
Referenced by OsiNullSolverInterface::getNumRows().
|
inlinevirtual |
Set ncol to the number of variables.
Definition at line 46 of file OsiData.hpp.
References ncol.
Referenced by OsiNullSolverInterface::loadDataAndSolution().
|
inline |
|
inlinevirtual |
Set matrixByCol to point on the coefficient matrix ordered by columns.
Definition at line 55 of file OsiData.hpp.
References matrixByCol.
Referenced by OsiNullSolverInterface::loadDataAndSolution().
|
inline |
Get matrixByCol.
Definition at line 60 of file OsiData.hpp.
References matrixByCol.
Referenced by OsiNullSolverInterface::getMatrixByCol(), and OsiNullSolverInterface::getNumElements().
|
inlinevirtual |
Set matrixByRow to point on the coefficient matrix ordered by rows.
Definition at line 64 of file OsiData.hpp.
References matrixByRow.
Referenced by OsiNullSolverInterface::loadDataAndSolution().
|
inline |
Get matrixByRow.
Definition at line 69 of file OsiData.hpp.
References matrixByRow.
Referenced by OsiNullSolverInterface::getMatrixByRow(), and OsiNullSolverInterface::getNumElements().
|
inlinevirtual |
Set obj to point on a vector holding the objective coefficient values.
Definition at line 72 of file OsiData.hpp.
References obj.
Referenced by OsiNullSolverInterface::loadDataAndSolution().
|
inline |
Get obj.
Definition at line 77 of file OsiData.hpp.
References obj.
Referenced by OsiNullSolverInterface::getObjCoefficients().
|
inlinevirtual |
Set colLower to point on a vector holding the lower bounds on the variables.
Definition at line 81 of file OsiData.hpp.
References colLower.
Referenced by OsiNullSolverInterface::loadDataAndSolution().
|
inline |
Get colLower.
Definition at line 86 of file OsiData.hpp.
References colLower.
Referenced by OsiNullSolverInterface::getColLower().
|
inlinevirtual |
Set colUpper to point on a vector holding the upper bounds on the variables.
Definition at line 90 of file OsiData.hpp.
References colUpper.
Referenced by OsiNullSolverInterface::loadDataAndSolution().
|
inline |
Get colUpper.
Definition at line 95 of file OsiData.hpp.
References colUpper.
Referenced by OsiNullSolverInterface::getColUpper().
|
inlinevirtual |
Set rowLower to point on a vector holding the lower bounds on the constraints.
Definition at line 99 of file OsiData.hpp.
References rowLower.
Referenced by OsiNullSolverInterface::loadDataAndSolution().
|
inline |
Get rowLower.
Definition at line 104 of file OsiData.hpp.
References rowLower.
Referenced by OsiNullSolverInterface::getRowLower().
|
inlinevirtual |
Set rowUpper to point on a vector holding the upper bounds on the constraints.
Definition at line 108 of file OsiData.hpp.
References rowUpper.
Referenced by OsiNullSolverInterface::loadDataAndSolution().
|
inline |
Get rowUpper.
Definition at line 113 of file OsiData.hpp.
References rowUpper.
Referenced by OsiNullSolverInterface::getRowUpper().
|
inline |
Set rowRhs to point on a vector holding the right hand side of the constraints (for a ranged constraint, it contains the upper bound).
Get rowRhs
Definition at line 119 of file OsiData.hpp.
References rowRhs.
Referenced by OsiNullSolverInterface::getRightHandSide().
|
inline |
Get rowRange.
Definition at line 121 of file OsiData.hpp.
References rowRange.
Referenced by OsiNullSolverInterface::getRowRange().
|
inline |
Get rowSense.
Definition at line 123 of file OsiData.hpp.
References rowSense.
Referenced by OsiNullSolverInterface::getRowSense().
|
inline |
Set rowActivity to point on a vector holding the activity of the constraints (i.e.
coefficient matrix times separateThis). Get rowActivity
Definition at line 129 of file OsiData.hpp.
References rowActivity.
Referenced by OsiNullSolverInterface::getRowActivity().
|
inlinevirtual |
Set colType to point on a vector holding the type of the variables ('B', 'I', or 'C' for Binary, Integer and Continuous)
Definition at line 133 of file OsiData.hpp.
References colType.
Referenced by OsiNullSolverInterface::loadDataAndSolution(), and OsiNullSolverInterface::setColType().
|
inline |
Get colType.
Definition at line 138 of file OsiData.hpp.
References colType.
Referenced by OsiNullSolverInterface::getNumIntegers(), OsiNullSolverInterface::isBinary(), OsiNullSolverInterface::isContinuous(), and OsiNullSolverInterface::isInteger().
|
inlinevirtual |
Set primal solution.
Definition at line 141 of file OsiData.hpp.
References primalSol.
Referenced by OsiNullSolverInterface::loadDataAndSolution(), and OsiNullSolverInterface::setColSolution().
|
inline |
|
inline |
initialize the non-const data
Definition at line 149 of file OsiData.hpp.
References CoinAssert, convertBoundToSense(), matrixByRow, nrow, primalSol, rowActivity, rowLower, rowRange, rowRhs, rowSense, rowUpper, and CoinPackedMatrix::times().
Referenced by OsiNullSolverInterface::loadDataAndSolution().
|
inline |
A quick inlined function to convert from the lb/ub style of constraint definition to the sense/rhs/range style.
Definition at line 169 of file OsiData.hpp.
References getInfinity().
Referenced by initializeOtherData().
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
Set matrixByCol to point on the coefficient matrix ordered by columns.
Definition at line 55 of file OsiData2.hpp.
References matrixByCol.
|
inline |
|
inlinevirtual |
Set matrixByRow to point on the coefficient matrix ordered by rows.
Definition at line 64 of file OsiData2.hpp.
References matrixByRow.
|
inline |
|
inlinevirtual |
Set obj to point on a vector holding the objective coefficient values.
Definition at line 72 of file OsiData2.hpp.
References obj.
|
inline |
|
inlinevirtual |
Set colLower to point on a vector holding the lower bounds on the variables.
Definition at line 81 of file OsiData2.hpp.
References colLower.
|
inline |
|
inlinevirtual |
Set colUpper to point on a vector holding the upper bounds on the variables.
Definition at line 90 of file OsiData2.hpp.
References colUpper.
|
inline |
|
inlinevirtual |
Set rowLower to point on a vector holding the lower bounds on the constraints.
Definition at line 99 of file OsiData2.hpp.
References rowLower.
|
inline |
|
inlinevirtual |
Set rowUpper to point on a vector holding the upper bounds on the constraints.
Definition at line 108 of file OsiData2.hpp.
References rowUpper.
|
inline |
|
inline |
Set rowRhs to point on a vector holding the right hand side of the constraints (for a ranged constraint, it contains the upper bound).
Get rowRhs
Definition at line 119 of file OsiData2.hpp.
References rowRhs.
|
inline |
|
inline |
|
inline |
Set rowActivity to point on a vector holding the activity of the constraints (i.e.
coefficient matrix times separateThis). Get rowActivity
Definition at line 129 of file OsiData2.hpp.
References rowActivity.
|
inlinevirtual |
Set colType to point on a vector holding the type of the variables ('B', 'I', or 'C' for Binary, Integer and Continuous)
Definition at line 133 of file OsiData2.hpp.
References colType.
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
initialize the non-const data
Definition at line 149 of file OsiData2.hpp.
References CoinAssert, convertBoundToSense(), matrixByRow, nrow, primalSol, rowActivity, rowLower, rowRange, rowRhs, rowSense, rowUpper, and CoinPackedMatrix::times().
|
inline |
A quick inlined function to convert from the lb/ub style of constraint definition to the sense/rhs/range style.
Definition at line 169 of file OsiData2.hpp.
References getInfinity().
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 252 of file OsiData.hpp.
Referenced by getInfinity(), and setInfinity().
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 255 of file OsiData.hpp.
Referenced by getNrow(), initializeOtherData(), and setNrow().
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 258 of file OsiData.hpp.
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 261 of file OsiData.hpp.
Referenced by getMatrixByCol(), and setMatrixByCol().
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 264 of file OsiData.hpp.
Referenced by getMatrixByRow(), initializeOtherData(), and setMatrixByRow().
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 267 of file OsiData.hpp.
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 270 of file OsiData.hpp.
Referenced by getColLower(), and setColLower().
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 273 of file OsiData.hpp.
Referenced by getColUpper(), and setColUpper().
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 276 of file OsiData.hpp.
Referenced by getRowLower(), initializeOtherData(), and setRowLower().
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 279 of file OsiData.hpp.
Referenced by getRowUpper(), initializeOtherData(), and setRowUpper().
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 289 of file OsiData.hpp.
Referenced by getColType(), and setColType().
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 292 of file OsiData.hpp.
Referenced by getPrimalSol(), initializeOtherData(), and setPrimalSol().
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 297 of file OsiData.hpp.
Referenced by getRowRhs(), initializeOtherData(), and ~OsiData().
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 300 of file OsiData.hpp.
Referenced by getRowRange(), initializeOtherData(), and ~OsiData().
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 303 of file OsiData.hpp.
Referenced by getRowSense(), initializeOtherData(), and ~OsiData().
|
protected |
Pointer on vector of characters for columns types.
colType[i] can have values
Definition at line 307 of file OsiData.hpp.
Referenced by getRowActivity(), initializeOtherData(), and ~OsiData().