38 virtual void setNrow(
const int givenNrow){
46 virtual void setNcol(
const int givenNcol){
72 virtual void setObj(
const double *givenObj){
159 for(r = 0; r <
nrow; r++){
173 double & range)
const
184 range = upper - lower;
203 OsiData(
const double givenInfinity = DBL_MAX,
205 const int &givenNrow = 0,
206 const int &givenNcol = 0,
209 const double * givenObj = NULL,
210 const double * givenColLower = NULL,
211 const double * givenColUpper = NULL,
212 const double * givenRowLower = NULL,
213 const double * givenRowUpper = NULL,
214 const char * givenColType = NULL,
215 const double * givenPrimalSol = NULL) :
int getNcol() const
Get ncol.
const char * getRowSense() const
Get rowSense.
virtual void setRowLower(const double *givenRowLower)
Set rowLower to point on a vector holding the lower bounds on the constraints.
const char * getColType() const
Get colType.
virtual void setNrow(const int givenNrow)
Set nrow to the number of rows.
const double * getObj() const
Get obj.
const char * colType
Pointer on vector of characters for columns types.
virtual void setObj(const double *givenObj)
Set obj to point on a vector holding the objective coefficient values.
const double * colUpper
Pointer on vector of characters for columns types.
void times(const double *x, double *y) const
Return A * x in y.
const CoinPackedMatrix * getMatrixByRow() const
Get matrixByRow.
virtual void setColLower(const double *givenColLower)
Set colLower to point on a vector holding the lower bounds on the variables.
CoinPackedMatrix const * matrixByRow
Pointer on vector of characters for columns types.
double infinity
Pointer on vector of characters for columns types.
const double * getRowRhs() const
Set rowRhs to point on a vector holding the right hand side of the constraints (for a ranged constrai...
virtual void setInfinity(const double givenInfinity)
Set infinity.
virtual void setPrimalSol(const double *givenPrimalSol)
Set primal solution.
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.
void initializeOtherData()
initialize the non-const data
virtual ~OsiData()
Destructor.
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/ra...
Sparse Matrix Base Class.
double * rowRhs
Pointer on vector of characters for columns types.
const double * rowUpper
Pointer on vector of characters for columns types.
int nrow
Pointer on vector of characters for columns types.
virtual void setColUpper(const double *givenColUpper)
Set colUpper to point on a vector holding the upper bounds on the variables.
const double * getColUpper() const
Get colUpper.
int ncol
Pointer on vector of characters for columns types.
char * rowSense
Pointer on vector of characters for columns types.
const double * getColLower() const
Get colLower.
const double * getRowLower() const
Get rowLower.
const double * rowLower
Pointer on vector of characters for columns types.
const double * colLower
Pointer on vector of characters for columns types.
const double * primalSol
Pointer on vector of characters for columns types.
virtual void setMatrixByCol(const CoinPackedMatrix *givenMatrixByCol)
Set matrixByCol to point on the coefficient matrix ordered by columns.
const double * getPrimalSol() const
Get primal solution.
virtual void setMatrixByRow(const CoinPackedMatrix *givenMatrixByRow)
Set matrixByRow to point on the coefficient matrix ordered by rows.
Class collecting pointers on data for OsiEmpty.
int getNrow() const
Get nrow.
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...
virtual void setNcol(const int givenNcol)
Set ncol to the number of variables.
const double * obj
Pointer on vector of characters for columns types.
const CoinPackedMatrix * getMatrixByCol() const
Get matrixByCol.
double getInfinity() const
Get infinity.
const double * getRowRange() const
Get rowRange.
double * rowRange
Pointer on vector of characters for columns types.
#define CoinAssert(expression)
CoinPackedMatrix const * matrixByCol
Pointer on vector of characters for columns types.
const double * getRowUpper() const
Get rowUpper.
virtual void setRowUpper(const double *givenRowUpper)
Set rowUpper to point on a vector holding the upper bounds on the constraints.
const double * getRowActivity() const
Set rowActivity to point on a vector holding the activity of the constraints (i.e.
double * rowActivity
Pointer on vector of characters for columns types.