Dip
0.92.4
|
#include <OsiNullSolverInterface.hpp>
Public Member Functions | |
Solve methods | |
virtual void | initialSolve () |
Solve initial LP relaxation. More... | |
virtual void | resolve () |
Resolve an LP relaxation after problem modification. More... | |
virtual void | branchAndBound () |
Invoke solver's built-in enumeration algorithm. More... | |
void | copyParameters (OsiNullSolverInterface &rhs) |
Solve initial LP relaxation. More... | |
virtual void | initialSolve () |
Solve initial LP relaxation. More... | |
virtual void | resolve () |
Resolve an LP relaxation after problem modification. More... | |
virtual void | branchAndBound () |
Invoke solver's built-in enumeration algorithm. More... | |
void | copyParameters (OsiNullSolverInterface &rhs) |
Solve initial LP relaxation. More... | |
Methods returning info on how the solution process terminated | |
virtual bool | isAbandoned () const |
Are there numerical difficulties? More... | |
virtual bool | isProvenOptimal () const |
Is optimality proven? More... | |
virtual bool | isProvenPrimalInfeasible () const |
Is primal infeasiblity proven? More... | |
virtual bool | isProvenDualInfeasible () const |
Is dual infeasiblity proven? More... | |
virtual bool | isPrimalObjectiveLimitReached () const |
Is the given primal objective limit reached? More... | |
virtual bool | isDualObjectiveLimitReached () const |
Is the given dual objective limit reached? More... | |
virtual bool | isIterationLimitReached () const |
Iteration limit reached? More... | |
virtual bool | isAbandoned () const |
Are there numerical difficulties? More... | |
virtual bool | isProvenOptimal () const |
Is optimality proven? More... | |
virtual bool | isProvenPrimalInfeasible () const |
Is primal infeasiblity proven? More... | |
virtual bool | isProvenDualInfeasible () const |
Is dual infeasiblity proven? More... | |
virtual bool | isPrimalObjectiveLimitReached () const |
Is the given primal objective limit reached? More... | |
virtual bool | isDualObjectiveLimitReached () const |
Is the given dual objective limit reached? More... | |
virtual bool | isIterationLimitReached () const |
Iteration limit reached? More... | |
Warm start methods | |
Note that the warm start methods return a generic CoinWarmStart object. The precise characteristics of this object are solver-dependent. Clients who wish to maintain a maximum degree of solver independence should take care to avoid unnecessary assumptions about the properties of a warm start object. | |
virtual CoinWarmStart * | getEmptyWarmStart () const |
Get an empty warm start object. More... | |
virtual CoinWarmStart * | getWarmStart () const |
Get warm start information. More... | |
virtual bool | setWarmStart (const CoinWarmStart *warmstart) |
Set warm start information. More... | |
virtual CoinWarmStart * | getEmptyWarmStart () const |
Get an empty warm start object. More... | |
virtual CoinWarmStart * | getWarmStart () const |
Get warm start information. More... | |
virtual bool | setWarmStart (const CoinWarmStart *warmstart) |
Set warm start information. More... | |
Problem query methods | |
Querying a problem that has no data associated with it will result in zeros for the number of rows and columns, and NULL pointers from the methods that return vectors. Const pointers returned from any data-query method are valid as long as the data is unchanged and the solver is not called. | |
virtual int | getNumCols () const |
Get number of columns. More... | |
virtual int | getNumRows () const |
Get number of rows. More... | |
virtual int | getNumElements () const |
Get number of nonzero elements. More... | |
virtual int | getNumIntegers () const |
Get number of integer variables. More... | |
virtual const double * | getColLower () const |
Get pointer to array[getNumCols()] of column lower bounds. More... | |
virtual const double * | getColUpper () const |
Get pointer to array[getNumCols()] of column upper bounds. More... | |
virtual const char * | getRowSense () const |
Get pointer to array[getNumRows()] of row constraint senses. More... | |
virtual const double * | getRightHandSide () const |
Get a pointer to an array[getNumRows()] of row right-hand sides. More... | |
virtual const double * | getRowRange () const |
Get number of columns. More... | |
virtual const double * | getRowLower () const |
Get pointer to array[getNumRows()] of row lower bounds. More... | |
virtual const double * | getRowUpper () const |
Get pointer to array[getNumRows()] of row upper bounds. More... | |
virtual const double * | getObjCoefficients () const |
Get pointer to array[getNumCols()] of objective function coefficients. More... | |
virtual double | getObjSense () const |
Get objective function sense (1 for min (default), -1 for max) More... | |
virtual bool | isContinuous (int colIndex) const |
Return true if variable is continuous. More... | |
virtual bool | isBinary (int colIndex) const |
Return true if variable is binary. More... | |
virtual bool | isInteger (int colIndex) const |
Return true if column is integer. More... | |
virtual const CoinPackedMatrix * | getMatrixByRow () const |
Get pointer to row-wise copy of matrix. More... | |
virtual const CoinPackedMatrix * | getMatrixByCol () const |
Get pointer to column-wise copy of matrix. More... | |
virtual double | getInfinity () const |
Get solver's value for infinity. More... | |
virtual int | getNumCols () const |
Get number of columns. More... | |
virtual int | getNumRows () const |
Get number of rows. More... | |
virtual int | getNumElements () const |
Get number of nonzero elements. More... | |
virtual int | getNumIntegers () const |
Get number of integer variables. More... | |
virtual const double * | getColLower () const |
Get pointer to array[getNumCols()] of column lower bounds. More... | |
virtual const double * | getColUpper () const |
Get pointer to array[getNumCols()] of column upper bounds. More... | |
virtual const char * | getRowSense () const |
Get pointer to array[getNumRows()] of row constraint senses. More... | |
virtual const double * | getRightHandSide () const |
Get a pointer to an array[getNumRows()] of row right-hand sides. More... | |
virtual const double * | getRowRange () const |
Get number of columns. More... | |
virtual const double * | getRowLower () const |
Get pointer to array[getNumRows()] of row lower bounds. More... | |
virtual const double * | getRowUpper () const |
Get pointer to array[getNumRows()] of row upper bounds. More... | |
virtual const double * | getObjCoefficients () const |
Get pointer to array[getNumCols()] of objective function coefficients. More... | |
virtual double | getObjSense () const |
Get objective function sense (1 for min (default), -1 for max) More... | |
virtual bool | isContinuous (int colIndex) const |
Return true if variable is continuous. More... | |
virtual bool | isBinary (int colIndex) const |
Return true if variable is binary. More... | |
virtual bool | isInteger (int colIndex) const |
Return true if column is integer. More... | |
virtual const CoinPackedMatrix * | getMatrixByRow () const |
Get pointer to row-wise copy of matrix. More... | |
virtual const CoinPackedMatrix * | getMatrixByCol () const |
Get pointer to column-wise copy of matrix. More... | |
virtual double | getInfinity () const |
Get solver's value for infinity. More... | |
Solution query methods | |
virtual const double * | getColSolution () const |
Get pointer to array[getNumCols()] of primal variable values. More... | |
virtual const double * | getRowPrice () const |
Get pointer to array[getNumRows()] of dual variable values. More... | |
virtual const double * | getReducedCost () const |
Get a pointer to array[getNumCols()] of reduced costs. More... | |
virtual const double * | getRowActivity () const |
Get pointer to array[getNumRows()] of row activity levels (constraint matrix times the solution vector). More... | |
virtual double | getObjValue () const |
Get objective function value. More... | |
virtual int | getIterationCount () const |
Get the number of iterations it took to solve the problem (whatever ``iteration'' means to the solver). More... | |
virtual std::vector< double * > | getDualRays (int maxNumRays) const |
Get as many dual rays as the solver can provide. More... | |
virtual std::vector< double * > | getPrimalRays (int maxNumRays) const |
Get pointer to array[getNumCols()] of primal variable values. More... | |
virtual const double * | getColSolution () const |
Get pointer to array[getNumCols()] of primal variable values. More... | |
virtual const double * | getRowPrice () const |
Get pointer to array[getNumRows()] of dual variable values. More... | |
virtual const double * | getReducedCost () const |
Get a pointer to array[getNumCols()] of reduced costs. More... | |
virtual const double * | getRowActivity () const |
Get pointer to array[getNumRows()] of row activity levels (constraint matrix times the solution vector). More... | |
virtual double | getObjValue () const |
Get objective function value. More... | |
virtual int | getIterationCount () const |
Get the number of iterations it took to solve the problem (whatever ``iteration'' means to the solver). More... | |
virtual std::vector< double * > | getDualRays (int maxNumRays) const |
Get as many dual rays as the solver can provide. More... | |
virtual std::vector< double * > | getPrimalRays (int maxNumRays) const |
Get pointer to array[getNumCols()] of primal variable values. More... | |
Methods to modify the objective, bounds, and solution | |
For functions which take a set of indices as parameters ( | |
virtual void | setObjCoeff (int elementIndex, double elementValue) |
Set an objective function coefficient. More... | |
virtual void | setColLower (int elementIndex, double elementValue) |
Set a single column lower bound. More... | |
virtual void | setColUpper (int elementIndex, double elementValue) |
Set a single column upper bound. More... | |
virtual void | setRowLower (int elementIndex, double elementValue) |
Set a single row lower bound. More... | |
virtual void | setRowUpper (int elementIndex, double elementValue) |
Set a single row upper bound. More... | |
virtual void | setRowType (int index, char sense, double rightHandSide, double range) |
Set the type of a single row. More... | |
virtual void | setObjSense (double s) |
Set the objective function sense. More... | |
virtual void | setColType (const char *colType) |
Set characters for columns types. More... | |
virtual void | setColSolution (const double *colsol) |
Set an objective function coefficient. More... | |
virtual void | setRowPrice (const double *rowprice) |
Set dual solution variable values. More... | |
virtual void | setObjCoeff (int elementIndex, double elementValue) |
Set an objective function coefficient. More... | |
virtual void | setColLower (int elementIndex, double elementValue) |
Set a single column lower bound. More... | |
virtual void | setColUpper (int elementIndex, double elementValue) |
Set a single column upper bound. More... | |
virtual void | setRowLower (int elementIndex, double elementValue) |
Set a single row lower bound. More... | |
virtual void | setRowUpper (int elementIndex, double elementValue) |
Set a single row upper bound. More... | |
virtual void | setRowType (int index, char sense, double rightHandSide, double range) |
Set the type of a single row. More... | |
virtual void | setObjSense (double s) |
Set the objective function sense. More... | |
virtual void | setColType (const char *colType) |
Set characters for columns types. More... | |
virtual void | setColSolution (const double *colsol) |
Set an objective function coefficient. More... | |
virtual void | setRowPrice (const double *rowprice) |
Set dual solution variable values. More... | |
Methods to set variable type | |
virtual void | setContinuous (int index) |
Set the index-th variable to be a continuous variable. More... | |
virtual void | setInteger (int index) |
Set the index-th variable to be an integer variable. More... | |
virtual void | setContinuous (int index) |
Set the index-th variable to be a continuous variable. More... | |
virtual void | setInteger (int index) |
Set the index-th variable to be an integer variable. More... | |
Methods to modify the constraint system. | |
Set the variables listed in indices (which is of length len) to be continuous variables Note that new columns are added as continuous variables. | |
virtual void | addCol (const CoinPackedVectorBase &vec, const double collb, const double colub, const double obj) |
Add a column (primal variable) to the problem. More... | |
virtual void | deleteCols (const int num, const int *colIndices) |
Remove a set of columns (primal variables) from the problem. More... | |
virtual void | addRow (const CoinPackedVectorBase &vec, const double rowlb, const double rowub) |
Add a row (constraint) to the problem. More... | |
virtual void | addRow (const CoinPackedVectorBase &vec, const char rowsen, const double rowrhs, const double rowrng) |
Add a column (primal variable) to the problem. More... | |
virtual void | deleteRows (const int num, const int *rowIndices) |
Delete a set of rows (constraints) from the problem. More... | |
virtual void | addCol (const CoinPackedVectorBase &vec, const double collb, const double colub, const double obj) |
Add a column (primal variable) to the problem. More... | |
virtual void | deleteCols (const int num, const int *colIndices) |
Remove a set of columns (primal variables) from the problem. More... | |
virtual void | addRow (const CoinPackedVectorBase &vec, const double rowlb, const double rowub) |
Add a row (constraint) to the problem. More... | |
virtual void | addRow (const CoinPackedVectorBase &vec, const char rowsen, const double rowrhs, const double rowrng) |
Add a column (primal variable) to the problem. More... | |
virtual void | deleteRows (const int num, const int *rowIndices) |
Delete a set of rows (constraints) from the problem. More... | |
Methods to input a problem | |
void | loadDataAndSolution (const CoinPackedMatrix &rowMatrix, const CoinPackedMatrix &colMatrix, const double *collb, const double *colub, const double *obj, const double *rowlb, const double *rowub, const char *colType, const double *primalSol, const double infinity) |
Load in an problem by copying the arguments (the constraints on the rows are given by lower and upper bounds). More... | |
virtual void | loadProblem (const CoinPackedMatrix &matrix, const double *collb, const double *colub, const double *obj, const double *rowlb, const double *rowub) |
Load in an problem by copying the arguments (the constraints on the rows are given by lower and upper bounds). More... | |
virtual void | assignProblem (CoinPackedMatrix *&matrix, double *&collb, double *&colub, double *&obj, double *&rowlb, double *&rowub) |
Load in an problem by assuming ownership of the arguments (the constraints on the rows are given by lower and upper bounds). More... | |
virtual void | loadProblem (const CoinPackedMatrix &matrix, const double *collb, const double *colub, const double *obj, const char *rowsen, const double *rowrhs, const double *rowrng) |
Load in an problem by copying the arguments (the constraints on the rows are given by sense/rhs/range triplets). More... | |
virtual void | assignProblem (CoinPackedMatrix *&matrix, double *&collb, double *&colub, double *&obj, char *&rowsen, double *&rowrhs, double *&rowrng) |
Load in an problem by assuming ownership of the arguments (the constraints on the rows are given by sense/rhs/range triplets). More... | |
virtual void | loadProblem (const int numcols, const int numrows, const CoinBigIndex *start, const int *index, const double *value, const double *collb, const double *colub, const double *obj, const double *rowlb, const double *rowub) |
Just like the other loadProblem() methods except that the matrix is given in a standard column major ordered format (without gaps). More... | |
virtual void | loadProblem (const int numcols, const int numrows, const CoinBigIndex *start, const int *index, const double *value, const double *collb, const double *colub, const double *obj, const char *rowsen, const double *rowrhs, const double *rowrng) |
Just like the other loadProblem() methods except that the matrix is given in a standard column major ordered format (without gaps). More... | |
virtual void | writeMps (const char *filename, const char *extension="mps", double objSense=0.0) const |
Write the problem in MPS format to the specified file. More... | |
void | loadDataAndSolution (const CoinPackedMatrix &rowMatrix, const CoinPackedMatrix &colMatrix, const double *collb, const double *colub, const double *obj, const double *rowlb, const double *rowub, const char *colType, const double *primalSol, const double infinity) |
Load in an problem by copying the arguments (the constraints on the rows are given by lower and upper bounds). More... | |
virtual void | loadProblem (const CoinPackedMatrix &matrix, const double *collb, const double *colub, const double *obj, const double *rowlb, const double *rowub) |
Load in an problem by copying the arguments (the constraints on the rows are given by lower and upper bounds). More... | |
virtual void | assignProblem (CoinPackedMatrix *&matrix, double *&collb, double *&colub, double *&obj, double *&rowlb, double *&rowub) |
Load in an problem by assuming ownership of the arguments (the constraints on the rows are given by lower and upper bounds). More... | |
virtual void | loadProblem (const CoinPackedMatrix &matrix, const double *collb, const double *colub, const double *obj, const char *rowsen, const double *rowrhs, const double *rowrng) |
Load in an problem by copying the arguments (the constraints on the rows are given by sense/rhs/range triplets). More... | |
virtual void | assignProblem (CoinPackedMatrix *&matrix, double *&collb, double *&colub, double *&obj, char *&rowsen, double *&rowrhs, double *&rowrng) |
Load in an problem by assuming ownership of the arguments (the constraints on the rows are given by sense/rhs/range triplets). More... | |
virtual void | loadProblem (const int numcols, const int numrows, const CoinBigIndex *start, const int *index, const double *value, const double *collb, const double *colub, const double *obj, const double *rowlb, const double *rowub) |
Just like the other loadProblem() methods except that the matrix is given in a standard column major ordered format (without gaps). More... | |
virtual void | loadProblem (const int numcols, const int numrows, const CoinBigIndex *start, const int *index, const double *value, const double *collb, const double *colub, const double *obj, const char *rowsen, const double *rowrhs, const double *rowrng) |
Just like the other loadProblem() methods except that the matrix is given in a standard column major ordered format (without gaps). More... | |
virtual void | writeMps (const char *filename, const char *extension="mps", double objSense=0.0) const |
Write the problem in MPS format to the specified file. More... | |
Constructors and destructors | |
OsiNullSolverInterface () | |
Default Constructor. More... | |
virtual OsiNullSolverInterface * | clone (bool copyData=true) const |
Clone. More... | |
OsiNullSolverInterface (const OsiNullSolverInterface &) | |
Copy constructor (disabled) More... | |
OsiNullSolverInterface & | operator= (const OsiNullSolverInterface &rhs) |
Assignment operator (disabled) More... | |
virtual | ~OsiNullSolverInterface () |
Destructor. More... | |
OsiNullSolverInterface () | |
Default Constructor. More... | |
virtual OsiNullSolverInterface * | clone (bool copyData=true) const |
Clone. More... | |
OsiNullSolverInterface (const OsiNullSolverInterface &) | |
Copy constructor (disabled) More... | |
OsiNullSolverInterface & | operator= (const OsiNullSolverInterface &rhs) |
Assignment operator (disabled) More... | |
virtual | ~OsiNullSolverInterface () |
Destructor. More... | |
![]() | |
virtual bool | setIntParam (OsiIntParam key, int value) |
Set an integer parameter. More... | |
virtual bool | setDblParam (OsiDblParam key, double value) |
Set a double parameter. More... | |
virtual bool | setStrParam (OsiStrParam key, const std::string &value) |
Set a string parameter. More... | |
virtual bool | setHintParam (OsiHintParam key, bool yesNo=true, OsiHintStrength strength=OsiHintTry, void *=NULL) |
Set a hint parameter. More... | |
virtual bool | getIntParam (OsiIntParam key, int &value) const |
Get an integer parameter. More... | |
virtual bool | getDblParam (OsiDblParam key, double &value) const |
Get a double parameter. More... | |
virtual bool | getStrParam (OsiStrParam key, std::string &value) const |
Get a string parameter. More... | |
virtual bool | getHintParam (OsiHintParam key, bool &yesNo, OsiHintStrength &strength, void *&otherInformation) const |
Get a hint parameter (all information) More... | |
virtual bool | getHintParam (OsiHintParam key, bool &yesNo, OsiHintStrength &strength) const |
Get a hint parameter (sense and strength only) More... | |
virtual bool | getHintParam (OsiHintParam key, bool &yesNo) const |
Get a hint parameter (sense only) More... | |
void | copyParameters (OsiSolverInterface &rhs) |
Copy all parameters in this section from one solver to another. More... | |
double | getIntegerTolerance () const |
Return the integrality tolerance of the underlying solver. More... | |
virtual CoinWarmStart * | getPointerToWarmStart (bool &mustDelete) |
Get warm start information. More... | |
virtual void | markHotStart () |
Create a hot start snapshot of the optimization process. More... | |
virtual void | solveFromHotStart () |
Optimize starting from the hot start snapshot. More... | |
virtual void | unmarkHotStart () |
Delete the hot start snapshot. More... | |
virtual bool | isIntegerNonBinary (int colIndex) const |
Return true if the variable is general integer. More... | |
virtual bool | isFreeBinary (int colIndex) const |
Return true if the variable is binary and not fixed. More... | |
const char * | columnType (bool refresh=false) const |
Return an array[getNumCols()] of column types. More... | |
void | setColumnType (int iColumn, char type) |
Set column type. More... | |
virtual const char * | getColType (bool refresh=false) const |
Return an array[getNumCols()] of column types. More... | |
virtual CoinPackedMatrix * | getMutableMatrixByRow () const |
Get a pointer to a mutable row-wise copy of the matrix. More... | |
virtual CoinPackedMatrix * | getMutableMatrixByCol () const |
Get a pointer to a mutable column-wise copy of the matrix. More... | |
virtual const double * | getStrictColSolution () |
Get a pointer to an array[getNumCols()] of primal variable values guaranteed to be between the column lower and upper bounds. More... | |
virtual std::vector< double * > | getDualRays (int maxNumRays, bool fullRay=false) const =0 |
Get as many dual rays as the solver can provide. More... | |
virtual OsiVectorInt | getFractionalIndices (const double etol=1.e-05) const |
Get vector of indices of primal variables which are integer variables but have fractional values in the current solution. More... | |
virtual void | setObjCoeffSet (const int *indexFirst, const int *indexLast, const double *coeffList) |
Set a set of objective function coefficients. More... | |
virtual void | setObjective (const double *array) |
Set the objective coefficients for all columns. More... | |
virtual void | setColLower (const double *array) |
Set the lower bounds for all columns. More... | |
virtual void | setColUpper (const double *array) |
Set the upper bounds for all columns. More... | |
virtual void | setColBounds (int elementIndex, double lower, double upper) |
Set a single column lower and upper bound. More... | |
virtual void | setColSetBounds (const int *indexFirst, const int *indexLast, const double *boundList) |
Set the upper and lower bounds of a set of columns. More... | |
virtual void | setRowBounds (int elementIndex, double lower, double upper) |
Set a single row lower and upper bound. More... | |
virtual void | setRowSetBounds (const int *indexFirst, const int *indexLast, const double *boundList) |
Set the bounds on a set of rows. More... | |
virtual void | setRowSetTypes (const int *indexFirst, const int *indexLast, const char *senseList, const double *rhsList, const double *rangeList) |
Set the type of a set of rows. More... | |
virtual int | reducedCostFix (double gap, bool justInteger=true) |
Fix variables at bound based on reduced cost. More... | |
virtual void | setContinuous (const int *indices, int len) |
Set the variables listed in indices (which is of length len) to be continuous variables. More... | |
virtual void | setInteger (const int *indices, int len) |
Set the variables listed in indices (which is of length len) to be integer variables. More... | |
virtual std::string | dfltRowColName (char rc, int ndx, unsigned digits=7) const |
Generate a standard name of the form Rnnnnnnn or Cnnnnnnn. More... | |
virtual std::string | getObjName (unsigned maxLen=static_cast< unsigned >(std::string::npos)) const |
Return the name of the objective function. More... | |
virtual void | setObjName (std::string name) |
Set the name of the objective function. More... | |
virtual std::string | getRowName (int rowIndex, unsigned maxLen=static_cast< unsigned >(std::string::npos)) const |
Return the name of the row. More... | |
virtual const OsiNameVec & | getRowNames () |
Return a pointer to a vector of row names. More... | |
virtual void | setRowName (int ndx, std::string name) |
Set a row name. More... | |
virtual void | setRowNames (OsiNameVec &srcNames, int srcStart, int len, int tgtStart) |
Set multiple row names. More... | |
virtual void | deleteRowNames (int tgtStart, int len) |
Delete len row names starting at index tgtStart. More... | |
virtual std::string | getColName (int colIndex, unsigned maxLen=static_cast< unsigned >(std::string::npos)) const |
Return the name of the column. More... | |
virtual const OsiNameVec & | getColNames () |
Return a pointer to a vector of column names. More... | |
virtual void | setColName (int ndx, std::string name) |
Set a column name. More... | |
virtual void | setColNames (OsiNameVec &srcNames, int srcStart, int len, int tgtStart) |
Set multiple column names. More... | |
virtual void | deleteColNames (int tgtStart, int len) |
Delete len column names starting at index tgtStart. More... | |
void | setRowColNames (const CoinMpsIO &mps) |
Set row and column names from a CoinMpsIO object. More... | |
void | setRowColNames (CoinModel &mod) |
Set row and column names from a CoinModel object. More... | |
void | setRowColNames (CoinLpIO &mod) |
Set row and column names from a CoinLpIO object. More... | |
virtual void | addCol (const CoinPackedVectorBase &vec, const double collb, const double colub, const double obj, std::string name) |
Add a named column (primal variable) to the problem. More... | |
virtual void | addCol (int numberElements, const int *rows, const double *elements, const double collb, const double colub, const double obj) |
Add a column (primal variable) to the problem. More... | |
virtual void | addCol (int numberElements, const int *rows, const double *elements, const double collb, const double colub, const double obj, std::string name) |
Add a named column (primal variable) to the problem. More... | |
virtual void | addCols (const int numcols, const CoinPackedVectorBase *const *cols, const double *collb, const double *colub, const double *obj) |
Add a set of columns (primal variables) to the problem. More... | |
virtual void | addCols (const int numcols, const CoinBigIndex *columnStarts, const int *rows, const double *elements, const double *collb, const double *colub, const double *obj) |
Add a set of columns (primal variables) to the problem. More... | |
void | addCols (const CoinBuild &buildObject) |
Add columns using a CoinBuild object. More... | |
int | addCols (CoinModel &modelObject) |
Add columns from a model object. More... | |
virtual void | addRow (const CoinPackedVectorBase &vec, const double rowlb, const double rowub, std::string name) |
Add a named row (constraint) to the problem. More... | |
virtual void | addRow (const CoinPackedVectorBase &vec, const char rowsen, const double rowrhs, const double rowrng, std::string name) |
Add a named row (constraint) to the problem. More... | |
virtual void | addRow (int numberElements, const int *columns, const double *element, const double rowlb, const double rowub) |
virtual void | addRows (const int numrows, const CoinPackedVectorBase *const *rows, const double *rowlb, const double *rowub) |
virtual void | addRows (const int numrows, const CoinPackedVectorBase *const *rows, const char *rowsen, const double *rowrhs, const double *rowrng) |
Add a set of rows (constraints) to the problem. More... | |
virtual void | addRows (const int numrows, const CoinBigIndex *rowStarts, const int *columns, const double *element, const double *rowlb, const double *rowub) |
Add a set of rows (constraints) to the problem. More... | |
void | addRows (const CoinBuild &buildObject) |
Add rows using a CoinBuild object. More... | |
int | addRows (CoinModel &modelObject) |
virtual void | replaceMatrixOptional (const CoinPackedMatrix &) |
Replace the constraint matrix. More... | |
virtual void | replaceMatrix (const CoinPackedMatrix &) |
Replace the constraint matrix. More... | |
virtual void | saveBaseModel () |
Save a copy of the base model. More... | |
virtual void | restoreBaseModel (int numberRows) |
Reduce the constraint system to the specified number of constraints. More... | |
virtual ApplyCutsReturnCode | applyCuts (const OsiCuts &cs, double effectivenessLb=0.0) |
Apply a collection of cuts. More... | |
virtual void | applyRowCuts (int numberCuts, const OsiRowCut *cuts) |
Apply a collection of row cuts which are all effective. More... | |
virtual void | applyRowCuts (int numberCuts, const OsiRowCut **cuts) |
Apply a collection of row cuts which are all effective. More... | |
void | deleteBranchingInfo (int numberDeleted, const int *which) |
Deletes branching information before columns deleted. More... | |
virtual int | loadFromCoinModel (CoinModel &modelObject, bool keepSolution=false) |
Load a model from a CoinModel object. Return the number of errors encountered. More... | |
virtual int | readMps (const char *filename, const char *extension="mps") |
Read a problem in MPS format from the given filename. More... | |
virtual int | readMps (const char *filename, const char *extension, int &numberSets, CoinSet **&sets) |
Read a problem in MPS format from the given full filename. More... | |
virtual int | readGMPL (const char *filename, const char *dataname=NULL) |
Read a problem in GMPL format from the given filenames. More... | |
int | writeMpsNative (const char *filename, const char **rowNames, const char **columnNames, int formatType=0, int numberAcross=2, double objSense=0.0, int numberSOS=0, const CoinSet *setInfo=NULL) const |
Write the problem in MPS format to the specified file with more control over the output. More... | |
virtual void | writeLp (const char *filename, const char *extension="lp", double epsilon=1e-5, int numberAcross=10, int decimals=9, double objSense=0.0, bool useRowNames=true) const |
Write the problem into an Lp file of the given filename with the specified extension. More... | |
virtual void | writeLp (FILE *fp, double epsilon=1e-5, int numberAcross=10, int decimals=5, double objSense=0.0, bool useRowNames=true) const |
Write the problem into the file pointed to by the parameter fp. More... | |
int | writeLpNative (const char *filename, char const *const *const rowNames, char const *const *const columnNames, const double epsilon=1.0e-5, const int numberAcross=10, const int decimals=5, const double objSense=0.0, const bool useRowNames=true) const |
Write the problem into an Lp file. More... | |
int | writeLpNative (FILE *fp, char const *const *const rowNames, char const *const *const columnNames, const double epsilon=1.0e-5, const int numberAcross=10, const int decimals=5, const double objSense=0.0, const bool useRowNames=true) const |
Write the problem into the file pointed to by the parameter fp. More... | |
virtual int | readLp (const char *filename, const double epsilon=1e-5) |
Read file in LP format from file with name filename. More... | |
int | readLp (FILE *fp, const double epsilon=1e-5) |
Read file in LP format from the file pointed to by fp. More... | |
int | differentModel (OsiSolverInterface &other, bool ignoreNames=true) |
Check two models against each other. More... | |
void | statistics (double &minimumNegative, double &maximumNegative, double &minimumPositive, double &maximumPositive, int type=3) const |
Get some statistics about model - min/max always computed type 0->4 , larger gives more information 0 - Just set min and max values of coefficients. More... | |
void | setApplicationData (void *appData) |
Set application data. More... | |
void | setAuxiliaryInfo (OsiAuxInfo *auxiliaryInfo) |
Create a clone of an Auxiliary Information object. More... | |
void * | getApplicationData () const |
Get application data. More... | |
OsiAuxInfo * | getAuxiliaryInfo () const |
Get pointer to auxiliary info object. More... | |
virtual void | passInMessageHandler (CoinMessageHandler *handler) |
Pass in a message handler. More... | |
void | newLanguage (CoinMessages::Language language) |
Set language. More... | |
void | setLanguage (CoinMessages::Language language) |
Pass in a message handler. More... | |
CoinMessageHandler * | messageHandler () const |
Return a pointer to the current message handler. More... | |
CoinMessages | messages () |
Return the current set of messages. More... | |
CoinMessages * | messagesPointer () |
Return a pointer to the current set of messages. More... | |
bool | defaultHandler () const |
Return true if default handler. More... | |
void | findIntegers (bool justCount) |
Identify integer variables and create corresponding objects. More... | |
virtual int | findIntegersAndSOS (bool justCount) |
Identify integer variables and SOS and create corresponding objects. More... | |
int | numberObjects () const |
Get the number of objects. More... | |
void | setNumberObjects (int number) |
Set the number of objects. More... | |
OsiObject ** | objects () const |
Get the array of objects. More... | |
const OsiObject * | object (int which) const |
Get the specified object. More... | |
OsiObject * | modifiableObject (int which) const |
Get the specified object. More... | |
void | deleteObjects () |
Delete all object information. More... | |
void | addObjects (int numberObjects, OsiObject **objects) |
Add in object information. More... | |
double | forceFeasible () |
Use current solution to set bounds so current integer feasible solution will stay feasible. More... | |
virtual void | activateRowCutDebugger (const char *modelName) |
Activate the row cut debugger. More... | |
virtual void | activateRowCutDebugger (const double *solution, bool enforceOptimality=true) |
Activate the row cut debugger using a full solution array. More... | |
const OsiRowCutDebugger * | getRowCutDebugger () const |
Get the row cut debugger provided the solution known to the debugger is within the feasible region held in the solver. More... | |
OsiRowCutDebugger * | getRowCutDebuggerAlways () const |
Get the row cut debugger object. More... | |
virtual int | canDoSimplexInterface () const |
Return the simplex implementation level. More... | |
virtual void | enableFactorization () const |
Prepare the solver for the use of tableau access methods. More... | |
virtual void | disableFactorization () const |
Undo the effects of enableFactorization. More... | |
virtual bool | basisIsAvailable () const |
Check if an optimal basis is available. More... | |
bool | optimalBasisIsAvailable () const |
Synonym for basisIsAvailable. More... | |
virtual void | getBasisStatus (int *cstat, int *rstat) const |
Retrieve status information for column and row variables. More... | |
virtual int | setBasisStatus (const int *cstat, const int *rstat) |
Set the status of column and row variables and update the basis factorization and solution. More... | |
virtual void | getReducedGradient (double *columnReducedCosts, double *duals, const double *c) const |
Calculate duals and reduced costs for the given objective coefficients. More... | |
virtual void | getBInvARow (int row, double *z, double *slack=NULL) const |
Get a row of the tableau. More... | |
virtual void | getBInvRow (int row, double *z) const |
Get a row of the basis inverse. More... | |
virtual void | getBInvACol (int col, double *vec) const |
Get a column of the tableau. More... | |
virtual void | getBInvCol (int col, double *vec) const |
Get a column of the basis inverse. More... | |
virtual void | getBasics (int *index) const |
Get indices of basic variables. More... | |
virtual void | enableSimplexInterface (bool doingPrimal) |
Enables normal operation of subsequent functions. More... | |
virtual void | disableSimplexInterface () |
Undo whatever setting changes the above method had to make. More... | |
virtual int | pivot (int colIn, int colOut, int outStatus) |
Perform a pivot by substituting a colIn for colOut in the basis. More... | |
virtual int | primalPivotResult (int colIn, int sign, int &colOut, int &outStatus, double &t, CoinPackedVector *dx) |
Obtain a result of the primal pivot Outputs: colOut – leaving column, outStatus – its status, t – step size, and, if dx!=NULL, *dx – primal ray direction. More... | |
virtual int | dualPivotResult (int &colIn, int &sign, int colOut, int outStatus, double &t, CoinPackedVector *dx) |
Obtain a result of the dual pivot (similar to the previous method) Differences: entering variable and a sign of its change are now the outputs, the leaving variable and its statuts – the inputs If dx!=NULL, then *dx contains dual ray Return code: same. More... | |
OsiSolverInterface () | |
Default Constructor. More... | |
OsiSolverInterface (const OsiSolverInterface &) | |
Copy constructor. More... | |
OsiSolverInterface & | operator= (const OsiSolverInterface &rhs) |
Assignment operator. More... | |
virtual | ~OsiSolverInterface () |
Destructor. More... | |
virtual void | reset () |
Reset the solver interface. More... | |
Protected Member Functions | |
Protected methods | |
virtual void | applyRowCut (const OsiRowCut &rc) |
Apply a row cut (append to the constraint matrix). More... | |
virtual void | applyColCut (const OsiColCut &cc) |
Apply a column cut (adjust the bounds of one or more variables). More... | |
template<class T > | |
T | forceIntoRange (const T value, const T lower, const T upper) const |
A quick inlined function to force a value to be between a minimum and a maximum value. More... | |
virtual void | applyRowCut (const OsiRowCut &rc) |
Apply a row cut (append to the constraint matrix). More... | |
virtual void | applyColCut (const OsiColCut &cc) |
Apply a column cut (adjust the bounds of one or more variables). More... | |
template<class T > | |
T | forceIntoRange (const T value, const T lower, const T upper) const |
A quick inlined function to force a value to be between a minimum and a maximum value. 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... | |
void | convertSenseToBound (const char sense, const double right, const double range, double &lower, double &upper) const |
A quick inlined function to convert from the sense/rhs/range style of constraint definition to the lb/ub style. More... | |
template<class T > | |
T | forceIntoRange (const T value, const T lower, const T upper) const |
A quick inlined function to force a value to be between a minimum and a maximum value. More... | |
void | setInitialData () |
Set OsiSolverInterface object state for default constructor. More... | |
Protected Attributes | |
OsiData * | data_ |
![]() | |
OsiRowCutDebugger * | rowCutDebugger_ |
Pointer to row cut debugger object. More... | |
CoinMessageHandler * | handler_ |
Message handler. More... | |
bool | defaultHandler_ |
Flag to say if the currrent handler is the default handler. More... | |
CoinMessages | messages_ |
Messages. More... | |
int | numberIntegers_ |
Number of integers. More... | |
int | numberObjects_ |
Total number of objects. More... | |
OsiObject ** | object_ |
Integer and ... information (integer info normally at beginning) More... | |
char * | columnType_ |
Column type 0 - continuous 1 - binary (may get fixed later) 2 - general integer (may get fixed later) 3 - if supported - semi-continuous 4 - if supported - semi-continuous integer. More... | |
Additional Inherited Members | |
![]() | |
typedef std::vector< std::string > | OsiNameVec |
Data type for name vectors. More... | |
Definition at line 38 of file OsiNullSolverInterface.hpp.
|
inline |
Default Constructor.
Definition at line 676 of file OsiNullSolverInterface.hpp.
OsiNullSolverInterface::OsiNullSolverInterface | ( | const OsiNullSolverInterface & | ) |
Copy constructor (disabled)
|
inlinevirtual |
|
inline |
Default Constructor.
Definition at line 676 of file OsiNullSolverInterface2.hpp.
OsiNullSolverInterface::OsiNullSolverInterface | ( | const OsiNullSolverInterface & | ) |
Copy constructor (disabled)
|
inlinevirtual |
|
inlinevirtual |
Solve initial LP relaxation.
Implements OsiSolverInterface.
Definition at line 44 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Resolve an LP relaxation after problem modification.
Implements OsiSolverInterface.
Definition at line 49 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Invoke solver's built-in enumeration algorithm.
Implements OsiSolverInterface.
Definition at line 54 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
void OsiNullSolverInterface::copyParameters | ( | OsiNullSolverInterface & | rhs | ) |
Solve initial LP relaxation.
|
inlinevirtual |
Are there numerical difficulties?
Implements OsiSolverInterface.
Definition at line 67 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Is optimality proven?
Implements OsiSolverInterface.
Definition at line 72 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Is primal infeasiblity proven?
Implements OsiSolverInterface.
Definition at line 77 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Is dual infeasiblity proven?
Implements OsiSolverInterface.
Definition at line 82 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Is the given primal objective limit reached?
Reimplemented from OsiSolverInterface.
Definition at line 87 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Is the given dual objective limit reached?
Reimplemented from OsiSolverInterface.
Definition at line 92 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Iteration limit reached?
Implements OsiSolverInterface.
Definition at line 97 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get an empty warm start object.
This routine returns an empty warm start object. Its purpose is to provide a way for a client to acquire a warm start object of the appropriate type for the solver, which can then be resized and modified as desired.
Implements OsiSolverInterface.
Definition at line 121 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get warm start information.
Return warm start information for the current state of the solver interface. If there is no valid warm start information, an empty warm start object wil be returned.
Implements OsiSolverInterface.
Definition at line 132 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set warm start information.
Return true or false depending on whether the warm start information was accepted or not. By definition, a call to setWarmStart with an empty warm start object should remove the warm start information held in the solver interface.
Implements OsiSolverInterface.
Definition at line 144 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get number of columns.
Implements OsiSolverInterface.
Definition at line 162 of file OsiNullSolverInterface.hpp.
Referenced by getNumIntegers().
|
inlinevirtual |
Get number of rows.
Implements OsiSolverInterface.
Definition at line 167 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getNrow().
|
inlinevirtual |
Get number of nonzero elements.
Implements OsiSolverInterface.
Definition at line 172 of file OsiNullSolverInterface.hpp.
References data_, OsiData::getMatrixByCol(), OsiData::getMatrixByRow(), and CoinPackedMatrix::getNumElements().
|
inlinevirtual |
Get number of integer variables.
Reimplemented from OsiSolverInterface.
Definition at line 184 of file OsiNullSolverInterface.hpp.
References data_, OsiData::getColType(), and getNumCols().
|
inlinevirtual |
Get pointer to array[getNumCols()] of column lower bounds.
Implements OsiSolverInterface.
Definition at line 195 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getColLower().
|
inlinevirtual |
Get pointer to array[getNumCols()] of column upper bounds.
Implements OsiSolverInterface.
Definition at line 200 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getColUpper().
|
inlinevirtual |
Get pointer to array[getNumRows()] of row constraint senses.
Get pointer to array[getNumRows()] of row right-hand sides
Implements OsiSolverInterface.
Definition at line 213 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getRowSense().
|
inlinevirtual |
Get a pointer to an array[getNumRows()] of row right-hand sides.
Get pointer to array[getNumRows()] of row ranges.
Implements OsiSolverInterface.
Definition at line 230 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getRowRhs().
|
inlinevirtual |
Get number of columns.
Implements OsiSolverInterface.
Definition at line 243 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getRowRange().
|
inlinevirtual |
Get pointer to array[getNumRows()] of row lower bounds.
Implements OsiSolverInterface.
Definition at line 248 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getRowLower().
|
inlinevirtual |
Get pointer to array[getNumRows()] of row upper bounds.
Implements OsiSolverInterface.
Definition at line 253 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getRowUpper().
|
inlinevirtual |
Get pointer to array[getNumCols()] of objective function coefficients.
Implements OsiSolverInterface.
Definition at line 258 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getObj().
|
inlinevirtual |
Get objective function sense (1 for min (default), -1 for max)
Implements OsiSolverInterface.
Definition at line 263 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Return true if variable is continuous.
Implements OsiSolverInterface.
Definition at line 269 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getColType().
|
inlinevirtual |
Return true if variable is binary.
Reimplemented from OsiSolverInterface.
Definition at line 274 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getColType().
|
inlinevirtual |
Return true if column is integer.
Note: This function returns true if the the column is binary or a general integer.
Reimplemented from OsiSolverInterface.
Definition at line 282 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getColType().
|
inlinevirtual |
Get pointer to row-wise copy of matrix.
Implements OsiSolverInterface.
Definition at line 288 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getMatrixByRow().
|
inlinevirtual |
Get pointer to column-wise copy of matrix.
Implements OsiSolverInterface.
Definition at line 293 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getMatrixByCol().
|
inlinevirtual |
Get solver's value for infinity.
Implements OsiSolverInterface.
Definition at line 297 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getInfinity().
|
inlinevirtual |
Get pointer to array[getNumCols()] of primal variable values.
Implements OsiSolverInterface.
Definition at line 305 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Get pointer to array[getNumRows()] of dual variable values.
Implements OsiSolverInterface.
Definition at line 311 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get a pointer to array[getNumCols()] of reduced costs.
Implements OsiSolverInterface.
Definition at line 317 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get pointer to array[getNumRows()] of row activity levels (constraint matrix times the solution vector).
Implements OsiSolverInterface.
Definition at line 324 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getRowActivity().
|
inlinevirtual |
Get objective function value.
Implements OsiSolverInterface.
Definition at line 329 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get the number of iterations it took to solve the problem (whatever ``iteration'' means to the solver).
Implements OsiSolverInterface.
Definition at line 336 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get as many dual rays as the solver can provide.
In case of proven primal infeasibility there should be at least one.
Get as many primal rays as the solver can provide. (In case of proven dual infeasibility there should be at least one.)
NOTE for implementers of solver interfaces:
The double pointers in the vector should point to arrays of length getNumCols() and they should be allocated via new[].
NOTE for users of solver interfaces:
It is the user's responsibility to free the double pointers in the vector using delete[].
Definition at line 353 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get pointer to array[getNumCols()] of primal variable values.
Implements OsiSolverInterface.
Definition at line 368 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set an objective function coefficient.
Implements OsiSolverInterface.
Definition at line 385 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set a single column lower bound.
Use -getInfinity() for -infinity.
Implements OsiSolverInterface.
Definition at line 391 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set a single column upper bound.
Use getInfinity() for infinity.
Implements OsiSolverInterface.
Definition at line 397 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set a single row lower bound.
Use -getInfinity() for -infinity.
Implements OsiSolverInterface.
Definition at line 403 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set a single row upper bound.
Use getInfinity() for infinity.
Implements OsiSolverInterface.
Definition at line 409 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set the type of a single row.
Implements OsiSolverInterface.
Definition at line 414 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set the objective function sense.
(1 for min (default), -1 for max)
Implements OsiSolverInterface.
Definition at line 421 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set characters for columns types.
colType[i] can have values
Definition at line 433 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::setColType().
|
inlinevirtual |
Set an objective function coefficient.
Implements OsiSolverInterface.
Definition at line 447 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::setPrimalSol().
|
inlinevirtual |
Set dual solution variable values.
rowprice[getNumRows()] is an array of values for the dual variables. These values are copied to memory owned by the solver interface object or the solver. They will be returned as the result of getRowPrice() until changed by another call to setRowPrice() or by a call to any solver routine. Whether the solver makes use of the solution in any way is solver-dependent.
Implements OsiSolverInterface.
Definition at line 462 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set the index-th variable to be a continuous variable.
Implements OsiSolverInterface.
Definition at line 470 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set the index-th variable to be an integer variable.
Implements OsiSolverInterface.
Definition at line 475 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Add a column (primal variable) to the problem.
Implements OsiSolverInterface.
Definition at line 492 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Remove a set of columns (primal variables) from the problem.
The solver interface for a basis-oriented solver will maintain valid warm start information if all deleted variables are nonbasic.
Implements OsiSolverInterface.
Definition at line 504 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Add a row (constraint) to the problem.
Implements OsiSolverInterface.
Definition at line 509 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Add a column (primal variable) to the problem.
Implements OsiSolverInterface.
Definition at line 515 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Delete a set of rows (constraints) from the problem.
The solver interface for a basis-oriented solver will maintain valid warm start information if all deleted rows are loose.
Implements OsiSolverInterface.
Definition at line 526 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inline |
Load in an problem by copying the arguments (the constraints on the rows are given by lower and upper bounds).
If a pointer is 0 then the following values are the default:
colub
: all columns have upper bound infinity collb
: all columns have lower bound 0 rowub
: all rows have upper bound infinity rowlb
: all rows have lower bound -infinity obj
: all variables have 0 objective coefficient Definition at line 535 of file OsiNullSolverInterface.hpp.
References data_, CoinPackedMatrix::getNumCols(), CoinPackedMatrix::getNumRows(), OsiData::initializeOtherData(), OsiData::setColLower(), OsiData::setColType(), OsiData::setColUpper(), OsiData::setInfinity(), OsiData::setMatrixByCol(), OsiData::setMatrixByRow(), OsiData::setNcol(), OsiData::setNrow(), OsiData::setObj(), OsiData::setPrimalSol(), OsiData::setRowLower(), and OsiData::setRowUpper().
|
inlinevirtual |
Load in an problem by copying the arguments (the constraints on the rows are given by lower and upper bounds).
If a pointer is 0 then the following values are the default:
colub
: all columns have upper bound infinity collb
: all columns have lower bound 0 rowub
: all rows have upper bound infinity rowlb
: all rows have lower bound -infinity obj
: all variables have 0 objective coefficient Implements OsiSolverInterface.
Definition at line 574 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Load in an problem by assuming ownership of the arguments (the constraints on the rows are given by lower and upper bounds).
For default values see the previous method.
delete
and delete[]
functions. Implements OsiSolverInterface.
Definition at line 594 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Load in an problem by copying the arguments (the constraints on the rows are given by sense/rhs/range triplets).
If a pointer is 0 then the following values are the default:
colub
: all columns have upper bound infinity collb
: all columns have lower bound 0 obj
: all variables have 0 objective coefficient rowsen
: all rows are >= rowrhs
: all right hand sides are 0 rowrng
: 0 for the ranged rows Implements OsiSolverInterface.
Definition at line 612 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Load in an problem by assuming ownership of the arguments (the constraints on the rows are given by sense/rhs/range triplets).
For default values see the previous method.
delete
and delete[]
functions. Implements OsiSolverInterface.
Definition at line 629 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Just like the other loadProblem() methods except that the matrix is given in a standard column major ordered format (without gaps).
Implements OsiSolverInterface.
Definition at line 638 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Just like the other loadProblem() methods except that the matrix is given in a standard column major ordered format (without gaps).
Implements OsiSolverInterface.
Definition at line 649 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Write the problem in MPS format to the specified file.
If objSense is non-zero, a value of -1.0 causes the problem to be written with a maximization objective; +1.0 forces a minimization objective. If objSense is zero, the choice is left to implementation.
Implements OsiSolverInterface.
Definition at line 665 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlinevirtual |
Clone.
The result of calling clone(false) is defined to be equivalent to calling the default constructor OsiNullSolverInterface().
Implements OsiSolverInterface.
Definition at line 688 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
OsiNullSolverInterface& OsiNullSolverInterface::operator= | ( | const OsiNullSolverInterface & | rhs | ) |
Assignment operator (disabled)
|
inlineprotectedvirtual |
Apply a row cut (append to the constraint matrix).
Implements OsiSolverInterface.
Definition at line 712 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlineprotectedvirtual |
Apply a column cut (adjust the bounds of one or more variables).
Implements OsiSolverInterface.
Definition at line 717 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
|
inlineprotected |
A quick inlined function to force a value to be between a minimum and a maximum value.
Definition at line 723 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Solve initial LP relaxation.
Implements OsiSolverInterface.
Definition at line 44 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Resolve an LP relaxation after problem modification.
Implements OsiSolverInterface.
Definition at line 49 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Invoke solver's built-in enumeration algorithm.
Implements OsiSolverInterface.
Definition at line 54 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
void OsiNullSolverInterface::copyParameters | ( | OsiNullSolverInterface & | rhs | ) |
Solve initial LP relaxation.
|
inlinevirtual |
Are there numerical difficulties?
Implements OsiSolverInterface.
Definition at line 67 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Is optimality proven?
Implements OsiSolverInterface.
Definition at line 72 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Is primal infeasiblity proven?
Implements OsiSolverInterface.
Definition at line 77 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Is dual infeasiblity proven?
Implements OsiSolverInterface.
Definition at line 82 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Is the given primal objective limit reached?
Reimplemented from OsiSolverInterface.
Definition at line 87 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Is the given dual objective limit reached?
Reimplemented from OsiSolverInterface.
Definition at line 92 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Iteration limit reached?
Implements OsiSolverInterface.
Definition at line 97 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get an empty warm start object.
This routine returns an empty warm start object. Its purpose is to provide a way for a client to acquire a warm start object of the appropriate type for the solver, which can then be resized and modified as desired.
Implements OsiSolverInterface.
Definition at line 121 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get warm start information.
Return warm start information for the current state of the solver interface. If there is no valid warm start information, an empty warm start object wil be returned.
Implements OsiSolverInterface.
Definition at line 132 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set warm start information.
Return true or false depending on whether the warm start information was accepted or not. By definition, a call to setWarmStart with an empty warm start object should remove the warm start information held in the solver interface.
Implements OsiSolverInterface.
Definition at line 144 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get number of columns.
Implements OsiSolverInterface.
Definition at line 162 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Get number of rows.
Implements OsiSolverInterface.
Definition at line 167 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getNrow().
|
inlinevirtual |
Get number of nonzero elements.
Implements OsiSolverInterface.
Definition at line 172 of file OsiNullSolverInterface2.hpp.
References data_, OsiData::getMatrixByCol(), OsiData::getMatrixByRow(), and CoinPackedMatrix::getNumElements().
|
inlinevirtual |
Get number of integer variables.
Reimplemented from OsiSolverInterface.
Definition at line 184 of file OsiNullSolverInterface2.hpp.
References data_, OsiData::getColType(), and getNumCols().
|
inlinevirtual |
Get pointer to array[getNumCols()] of column lower bounds.
Implements OsiSolverInterface.
Definition at line 195 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getColLower().
|
inlinevirtual |
Get pointer to array[getNumCols()] of column upper bounds.
Implements OsiSolverInterface.
Definition at line 200 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getColUpper().
|
inlinevirtual |
Get pointer to array[getNumRows()] of row constraint senses.
Get pointer to array[getNumRows()] of row right-hand sides
Implements OsiSolverInterface.
Definition at line 213 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getRowSense().
|
inlinevirtual |
Get a pointer to an array[getNumRows()] of row right-hand sides.
Get pointer to array[getNumRows()] of row ranges.
Implements OsiSolverInterface.
Definition at line 230 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getRowRhs().
|
inlinevirtual |
Get number of columns.
Implements OsiSolverInterface.
Definition at line 243 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getRowRange().
|
inlinevirtual |
Get pointer to array[getNumRows()] of row lower bounds.
Implements OsiSolverInterface.
Definition at line 248 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getRowLower().
|
inlinevirtual |
Get pointer to array[getNumRows()] of row upper bounds.
Implements OsiSolverInterface.
Definition at line 253 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getRowUpper().
|
inlinevirtual |
Get pointer to array[getNumCols()] of objective function coefficients.
Implements OsiSolverInterface.
Definition at line 258 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getObj().
|
inlinevirtual |
Get objective function sense (1 for min (default), -1 for max)
Implements OsiSolverInterface.
Definition at line 263 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Return true if variable is continuous.
Implements OsiSolverInterface.
Definition at line 269 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getColType().
|
inlinevirtual |
Return true if variable is binary.
Reimplemented from OsiSolverInterface.
Definition at line 274 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getColType().
|
inlinevirtual |
Return true if column is integer.
Note: This function returns true if the the column is binary or a general integer.
Reimplemented from OsiSolverInterface.
Definition at line 282 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getColType().
|
inlinevirtual |
Get pointer to row-wise copy of matrix.
Implements OsiSolverInterface.
Definition at line 288 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getMatrixByRow().
|
inlinevirtual |
Get pointer to column-wise copy of matrix.
Implements OsiSolverInterface.
Definition at line 293 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getMatrixByCol().
|
inlinevirtual |
Get solver's value for infinity.
Implements OsiSolverInterface.
Definition at line 297 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getInfinity().
|
inlinevirtual |
Get pointer to array[getNumCols()] of primal variable values.
Implements OsiSolverInterface.
Definition at line 305 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Get pointer to array[getNumRows()] of dual variable values.
Implements OsiSolverInterface.
Definition at line 311 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get a pointer to array[getNumCols()] of reduced costs.
Implements OsiSolverInterface.
Definition at line 317 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get pointer to array[getNumRows()] of row activity levels (constraint matrix times the solution vector).
Implements OsiSolverInterface.
Definition at line 324 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getRowActivity().
|
inlinevirtual |
Get objective function value.
Implements OsiSolverInterface.
Definition at line 329 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get the number of iterations it took to solve the problem (whatever ``iteration'' means to the solver).
Implements OsiSolverInterface.
Definition at line 336 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get as many dual rays as the solver can provide.
In case of proven primal infeasibility there should be at least one.
Get as many primal rays as the solver can provide. (In case of proven dual infeasibility there should be at least one.)
NOTE for implementers of solver interfaces:
The double pointers in the vector should point to arrays of length getNumCols() and they should be allocated via new[].
NOTE for users of solver interfaces:
It is the user's responsibility to free the double pointers in the vector using delete[].
Definition at line 353 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Get pointer to array[getNumCols()] of primal variable values.
Implements OsiSolverInterface.
Definition at line 368 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set an objective function coefficient.
Implements OsiSolverInterface.
Definition at line 385 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set a single column lower bound.
Use -getInfinity() for -infinity.
Implements OsiSolverInterface.
Definition at line 391 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set a single column upper bound.
Use getInfinity() for infinity.
Implements OsiSolverInterface.
Definition at line 397 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set a single row lower bound.
Use -getInfinity() for -infinity.
Implements OsiSolverInterface.
Definition at line 403 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set a single row upper bound.
Use getInfinity() for infinity.
Implements OsiSolverInterface.
Definition at line 409 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set the type of a single row.
Implements OsiSolverInterface.
Definition at line 414 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set the objective function sense.
(1 for min (default), -1 for max)
Implements OsiSolverInterface.
Definition at line 421 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set characters for columns types.
colType[i] can have values
Definition at line 433 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::setColType().
|
inlinevirtual |
Set an objective function coefficient.
Implements OsiSolverInterface.
Definition at line 447 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::setPrimalSol().
|
inlinevirtual |
Set dual solution variable values.
rowprice[getNumRows()] is an array of values for the dual variables. These values are copied to memory owned by the solver interface object or the solver. They will be returned as the result of getRowPrice() until changed by another call to setRowPrice() or by a call to any solver routine. Whether the solver makes use of the solution in any way is solver-dependent.
Implements OsiSolverInterface.
Definition at line 462 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set the index-th variable to be a continuous variable.
Implements OsiSolverInterface.
Definition at line 470 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Set the index-th variable to be an integer variable.
Implements OsiSolverInterface.
Definition at line 475 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Add a column (primal variable) to the problem.
Implements OsiSolverInterface.
Definition at line 492 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Remove a set of columns (primal variables) from the problem.
The solver interface for a basis-oriented solver will maintain valid warm start information if all deleted variables are nonbasic.
Implements OsiSolverInterface.
Definition at line 504 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Add a row (constraint) to the problem.
Implements OsiSolverInterface.
Definition at line 509 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Add a column (primal variable) to the problem.
Implements OsiSolverInterface.
Definition at line 515 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Delete a set of rows (constraints) from the problem.
The solver interface for a basis-oriented solver will maintain valid warm start information if all deleted rows are loose.
Implements OsiSolverInterface.
Definition at line 526 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inline |
Load in an problem by copying the arguments (the constraints on the rows are given by lower and upper bounds).
If a pointer is 0 then the following values are the default:
colub
: all columns have upper bound infinity collb
: all columns have lower bound 0 rowub
: all rows have upper bound infinity rowlb
: all rows have lower bound -infinity obj
: all variables have 0 objective coefficient Definition at line 535 of file OsiNullSolverInterface2.hpp.
References data_, CoinPackedMatrix::getNumCols(), CoinPackedMatrix::getNumRows(), OsiData::initializeOtherData(), OsiData::setColLower(), OsiData::setColType(), OsiData::setColUpper(), OsiData::setInfinity(), OsiData::setMatrixByCol(), OsiData::setMatrixByRow(), OsiData::setNcol(), OsiData::setNrow(), OsiData::setObj(), OsiData::setPrimalSol(), OsiData::setRowLower(), and OsiData::setRowUpper().
|
inlinevirtual |
Load in an problem by copying the arguments (the constraints on the rows are given by lower and upper bounds).
If a pointer is 0 then the following values are the default:
colub
: all columns have upper bound infinity collb
: all columns have lower bound 0 rowub
: all rows have upper bound infinity rowlb
: all rows have lower bound -infinity obj
: all variables have 0 objective coefficient Implements OsiSolverInterface.
Definition at line 574 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Load in an problem by assuming ownership of the arguments (the constraints on the rows are given by lower and upper bounds).
For default values see the previous method.
delete
and delete[]
functions. Implements OsiSolverInterface.
Definition at line 594 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Load in an problem by copying the arguments (the constraints on the rows are given by sense/rhs/range triplets).
If a pointer is 0 then the following values are the default:
colub
: all columns have upper bound infinity collb
: all columns have lower bound 0 obj
: all variables have 0 objective coefficient rowsen
: all rows are >= rowrhs
: all right hand sides are 0 rowrng
: 0 for the ranged rows Implements OsiSolverInterface.
Definition at line 612 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Load in an problem by assuming ownership of the arguments (the constraints on the rows are given by sense/rhs/range triplets).
For default values see the previous method.
delete
and delete[]
functions. Implements OsiSolverInterface.
Definition at line 629 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Just like the other loadProblem() methods except that the matrix is given in a standard column major ordered format (without gaps).
Implements OsiSolverInterface.
Definition at line 638 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Just like the other loadProblem() methods except that the matrix is given in a standard column major ordered format (without gaps).
Implements OsiSolverInterface.
Definition at line 649 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Write the problem in MPS format to the specified file.
If objSense is non-zero, a value of -1.0 causes the problem to be written with a maximization objective; +1.0 forces a minimization objective. If objSense is zero, the choice is left to implementation.
Implements OsiSolverInterface.
Definition at line 665 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlinevirtual |
Clone.
The result of calling clone(false) is defined to be equivalent to calling the default constructor OsiNullSolverInterface().
Implements OsiSolverInterface.
Definition at line 688 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
OsiNullSolverInterface& OsiNullSolverInterface::operator= | ( | const OsiNullSolverInterface & | rhs | ) |
Assignment operator (disabled)
|
inlineprotectedvirtual |
Apply a row cut (append to the constraint matrix).
Implements OsiSolverInterface.
Definition at line 712 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlineprotectedvirtual |
Apply a column cut (adjust the bounds of one or more variables).
Implements OsiSolverInterface.
Definition at line 717 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
|
inlineprotected |
A quick inlined function to force a value to be between a minimum and a maximum value.
Definition at line 723 of file OsiNullSolverInterface2.hpp.
|
protected |
Definition at line 730 of file OsiNullSolverInterface.hpp.
Referenced by getColLower(), getColUpper(), getInfinity(), getMatrixByCol(), getMatrixByRow(), getNumElements(), getNumIntegers(), getNumRows(), getObjCoefficients(), getRightHandSide(), getRowActivity(), getRowLower(), getRowRange(), getRowSense(), getRowUpper(), isBinary(), isContinuous(), isInteger(), loadDataAndSolution(), setColSolution(), setColType(), and ~OsiNullSolverInterface().