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) |
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) |
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 |
virtual const double * | getRowRange () const |
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 |
virtual const double * | getRowRange () const |
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 |
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 |
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) |
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) |
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) |
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) |
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) |
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) |
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) |
virtual bool | setDblParam (OsiDblParam key, double value) |
virtual bool | setStrParam (OsiStrParam key, const std::string &value) |
virtual bool | setHintParam (OsiHintParam key, bool yesNo=true, OsiHintStrength strength=OsiHintTry, void *=NULL) |
virtual bool | getIntParam (OsiIntParam key, int &value) const |
virtual bool | getDblParam (OsiDblParam key, double &value) const |
virtual bool | getStrParam (OsiStrParam key, std::string &value) const |
virtual bool | getHintParam (OsiHintParam key, bool &yesNo, OsiHintStrength &strength, void *&otherInformation) const |
virtual bool | getHintParam (OsiHintParam key, bool &yesNo, OsiHintStrength &strength) const |
virtual bool | getHintParam (OsiHintParam key, bool &yesNo) const |
void | copyParameters (OsiSolverInterface &rhs) |
double | getIntegerTolerance () const |
virtual CoinWarmStart * | getPointerToWarmStart (bool &mustDelete) |
virtual void | markHotStart () |
virtual void | solveFromHotStart () |
virtual void | unmarkHotStart () |
virtual bool | isIntegerNonBinary (int colIndex) const |
virtual bool | isFreeBinary (int colIndex) const |
const char * | columnType (bool refresh=false) const |
void | setColumnType (int iColumn, char type) |
virtual const char * | getColType (bool refresh=false) const |
virtual CoinPackedMatrix * | getMutableMatrixByRow () const |
virtual CoinPackedMatrix * | getMutableMatrixByCol () const |
virtual const double * | getStrictColSolution () |
virtual std::vector< double * > | getDualRays (int maxNumRays, bool fullRay=false) const=0 |
virtual OsiVectorInt | getFractionalIndices (const double etol=1.e-05) const |
virtual void | setObjCoeffSet (const int *indexFirst, const int *indexLast, const double *coeffList) |
virtual void | setObjective (const double *array) |
virtual void | setColLower (const double *array) |
virtual void | setColUpper (const double *array) |
virtual void | setColBounds (int elementIndex, double lower, double upper) |
virtual void | setColSetBounds (const int *indexFirst, const int *indexLast, const double *boundList) |
virtual void | setRowBounds (int elementIndex, double lower, double upper) |
virtual void | setRowSetBounds (const int *indexFirst, const int *indexLast, const double *boundList) |
virtual void | setRowSetTypes (const int *indexFirst, const int *indexLast, const char *senseList, const double *rhsList, const double *rangeList) |
virtual int | reducedCostFix (double gap, bool justInteger=true) |
virtual void | setContinuous (const int *indices, int len) |
virtual void | setInteger (const int *indices, int len) |
virtual std::string | dfltRowColName (char rc, int ndx, unsigned digits=7) const |
virtual std::string | getObjName (unsigned maxLen=static_cast< unsigned >(std::string::npos)) const |
virtual void | setObjName (std::string name) |
virtual std::string | getRowName (int rowIndex, unsigned maxLen=static_cast< unsigned >(std::string::npos)) const |
virtual const OsiNameVec & | getRowNames () |
virtual void | setRowName (int ndx, std::string name) |
virtual void | setRowNames (OsiNameVec &srcNames, int srcStart, int len, int tgtStart) |
virtual void | deleteRowNames (int tgtStart, int len) |
virtual std::string | getColName (int colIndex, unsigned maxLen=static_cast< unsigned >(std::string::npos)) const |
virtual const OsiNameVec & | getColNames () |
virtual void | setColName (int ndx, std::string name) |
virtual void | setColNames (OsiNameVec &srcNames, int srcStart, int len, int tgtStart) |
virtual void | deleteColNames (int tgtStart, int len) |
void | setRowColNames (const CoinMpsIO &mps) |
void | setRowColNames (CoinModel &mod) |
void | setRowColNames (CoinLpIO &mod) |
virtual void | addCol (const CoinPackedVectorBase &vec, const double collb, const double colub, const double obj, std::string name) |
virtual void | addCol (int numberElements, const int *rows, const double *elements, const double collb, const double colub, const double obj) |
virtual void | addCol (int numberElements, const int *rows, const double *elements, const double collb, const double colub, const double obj, std::string name) |
virtual void | addCols (const int numcols, const CoinPackedVectorBase *const *cols, const double *collb, const double *colub, const double *obj) |
virtual void | addCols (const int numcols, const CoinBigIndex *columnStarts, const int *rows, const double *elements, const double *collb, const double *colub, const double *obj) |
void | addCols (const CoinBuild &buildObject) |
int | addCols (CoinModel &modelObject) |
virtual void | addRow (const CoinPackedVectorBase &vec, const double rowlb, const double rowub, std::string name) |
virtual void | addRow (const CoinPackedVectorBase &vec, const char rowsen, const double rowrhs, const double rowrng, std::string name) |
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) |
virtual void | addRows (const int numrows, const CoinBigIndex *rowStarts, const int *columns, const double *element, const double *rowlb, const double *rowub) |
void | addRows (const CoinBuild &buildObject) |
int | addRows (CoinModel &modelObject) |
virtual void | replaceMatrixOptional (const CoinPackedMatrix &) |
virtual void | replaceMatrix (const CoinPackedMatrix &) |
virtual void | saveBaseModel () |
virtual void | restoreBaseModel (int numberRows) |
virtual ApplyCutsReturnCode | applyCuts (const OsiCuts &cs, double effectivenessLb=0.0) |
virtual void | applyRowCuts (int numberCuts, const OsiRowCut *cuts) |
virtual void | applyRowCuts (int numberCuts, const OsiRowCut **cuts) |
void | deleteBranchingInfo (int numberDeleted, const int *which) |
virtual int | loadFromCoinModel (CoinModel &modelObject, bool keepSolution=false) |
virtual int | readMps (const char *filename, const char *extension="mps") |
virtual int | readMps (const char *filename, const char *extension, int &numberSets, CoinSet **&sets) |
virtual int | readGMPL (const char *filename, const char *dataname=NULL) |
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 |
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 |
virtual void | writeLp (FILE *fp, double epsilon=1e-5, int numberAcross=10, int decimals=5, double objSense=0.0, bool useRowNames=true) const |
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 |
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 |
virtual int | readLp (const char *filename, const double epsilon=1e-5) |
int | readLp (FILE *fp, const double epsilon=1e-5) |
int | differentModel (OsiSolverInterface &other, bool ignoreNames=true) |
void | statistics (double &minimumNegative, double &maximumNegative, double &minimumPositive, double &maximumPositive, int type=3) const |
void | setApplicationData (void *appData) |
void | setAuxiliaryInfo (OsiAuxInfo *auxiliaryInfo) |
void * | getApplicationData () const |
OsiAuxInfo * | getAuxiliaryInfo () const |
virtual void | passInMessageHandler (CoinMessageHandler *handler) |
void | newLanguage (CoinMessages::Language language) |
void | setLanguage (CoinMessages::Language language) |
CoinMessageHandler * | messageHandler () const |
CoinMessages | messages () |
CoinMessages * | messagesPointer () |
bool | defaultHandler () const |
void | findIntegers (bool justCount) |
virtual int | findIntegersAndSOS (bool justCount) |
int | numberObjects () const |
void | setNumberObjects (int number) |
OsiObject ** | objects () const |
const OsiObject * | object (int which) const |
OsiObject * | modifiableObject (int which) const |
void | deleteObjects () |
void | addObjects (int numberObjects, OsiObject **objects) |
double | forceFeasible () |
virtual void | activateRowCutDebugger (const char *modelName) |
virtual void | activateRowCutDebugger (const double *solution, bool enforceOptimality=true) |
const OsiRowCutDebugger * | getRowCutDebugger () const |
OsiRowCutDebugger * | getRowCutDebuggerAlways () const |
virtual int | canDoSimplexInterface () const |
virtual void | enableFactorization () const |
virtual void | disableFactorization () const |
virtual bool | basisIsAvailable () const |
bool | optimalBasisIsAvailable () const |
virtual void | getBasisStatus (int *cstat, int *rstat) const |
virtual int | setBasisStatus (const int *cstat, const int *rstat) |
virtual void | getReducedGradient (double *columnReducedCosts, double *duals, const double *c) const |
virtual void | getBInvARow (int row, double *z, double *slack=NULL) const |
virtual void | getBInvRow (int row, double *z) const |
virtual void | getBInvACol (int col, double *vec) const |
virtual void | getBInvCol (int col, double *vec) const |
virtual void | getBasics (int *index) const |
virtual void | enableSimplexInterface (bool doingPrimal) |
virtual void | disableSimplexInterface () |
virtual int | pivot (int colIn, int colOut, int outStatus) |
virtual int | primalPivotResult (int colIn, int sign, int &colOut, int &outStatus, double &t, CoinPackedVector *dx) |
virtual int | dualPivotResult (int &colIn, int &sign, int colOut, int outStatus, double &t, CoinPackedVector *dx) |
OsiSolverInterface () | |
OsiSolverInterface (const OsiSolverInterface &) | |
OsiSolverInterface & | operator= (const OsiSolverInterface &rhs) |
virtual | ~OsiSolverInterface () |
virtual void | reset () |
virtual bool | setIntParam (OsiIntParam key, int value) |
virtual bool | setDblParam (OsiDblParam key, double value) |
virtual bool | setStrParam (OsiStrParam key, const std::string &value) |
virtual bool | setHintParam (OsiHintParam key, bool yesNo=true, OsiHintStrength strength=OsiHintTry, void *=NULL) |
virtual bool | getIntParam (OsiIntParam key, int &value) const |
virtual bool | getDblParam (OsiDblParam key, double &value) const |
virtual bool | getStrParam (OsiStrParam key, std::string &value) const |
virtual bool | getHintParam (OsiHintParam key, bool &yesNo, OsiHintStrength &strength, void *&otherInformation) const |
virtual bool | getHintParam (OsiHintParam key, bool &yesNo, OsiHintStrength &strength) const |
virtual bool | getHintParam (OsiHintParam key, bool &yesNo) const |
void | copyParameters (OsiSolverInterface &rhs) |
double | getIntegerTolerance () const |
virtual CoinWarmStart * | getPointerToWarmStart (bool &mustDelete) |
virtual void | markHotStart () |
virtual void | solveFromHotStart () |
virtual void | unmarkHotStart () |
virtual bool | isIntegerNonBinary (int colIndex) const |
virtual bool | isFreeBinary (int colIndex) const |
const char * | columnType (bool refresh=false) const |
void | setColumnType (int iColumn, char type) |
virtual const char * | getColType (bool refresh=false) const |
virtual CoinPackedMatrix * | getMutableMatrixByRow () const |
virtual CoinPackedMatrix * | getMutableMatrixByCol () const |
virtual const double * | getStrictColSolution () |
virtual std::vector< double * > | getDualRays (int maxNumRays, bool fullRay=false) const=0 |
virtual OsiVectorInt | getFractionalIndices (const double etol=1.e-05) const |
virtual void | setObjCoeffSet (const int *indexFirst, const int *indexLast, const double *coeffList) |
virtual void | setObjective (const double *array) |
virtual void | setColLower (const double *array) |
virtual void | setColUpper (const double *array) |
virtual void | setColBounds (int elementIndex, double lower, double upper) |
virtual void | setColSetBounds (const int *indexFirst, const int *indexLast, const double *boundList) |
virtual void | setRowBounds (int elementIndex, double lower, double upper) |
virtual void | setRowSetBounds (const int *indexFirst, const int *indexLast, const double *boundList) |
virtual void | setRowSetTypes (const int *indexFirst, const int *indexLast, const char *senseList, const double *rhsList, const double *rangeList) |
virtual int | reducedCostFix (double gap, bool justInteger=true) |
virtual void | setContinuous (const int *indices, int len) |
virtual void | setInteger (const int *indices, int len) |
virtual std::string | dfltRowColName (char rc, int ndx, unsigned digits=7) const |
virtual std::string | getObjName (unsigned maxLen=static_cast< unsigned >(std::string::npos)) const |
virtual void | setObjName (std::string name) |
virtual std::string | getRowName (int rowIndex, unsigned maxLen=static_cast< unsigned >(std::string::npos)) const |
virtual const OsiNameVec & | getRowNames () |
virtual void | setRowName (int ndx, std::string name) |
virtual void | setRowNames (OsiNameVec &srcNames, int srcStart, int len, int tgtStart) |
virtual void | deleteRowNames (int tgtStart, int len) |
virtual std::string | getColName (int colIndex, unsigned maxLen=static_cast< unsigned >(std::string::npos)) const |
virtual const OsiNameVec & | getColNames () |
virtual void | setColName (int ndx, std::string name) |
virtual void | setColNames (OsiNameVec &srcNames, int srcStart, int len, int tgtStart) |
virtual void | deleteColNames (int tgtStart, int len) |
void | setRowColNames (const CoinMpsIO &mps) |
void | setRowColNames (CoinModel &mod) |
void | setRowColNames (CoinLpIO &mod) |
virtual void | addCol (const CoinPackedVectorBase &vec, const double collb, const double colub, const double obj, std::string name) |
virtual void | addCol (int numberElements, const int *rows, const double *elements, const double collb, const double colub, const double obj) |
virtual void | addCol (int numberElements, const int *rows, const double *elements, const double collb, const double colub, const double obj, std::string name) |
virtual void | addCols (const int numcols, const CoinPackedVectorBase *const *cols, const double *collb, const double *colub, const double *obj) |
virtual void | addCols (const int numcols, const CoinBigIndex *columnStarts, const int *rows, const double *elements, const double *collb, const double *colub, const double *obj) |
void | addCols (const CoinBuild &buildObject) |
int | addCols (CoinModel &modelObject) |
virtual void | addRow (const CoinPackedVectorBase &vec, const double rowlb, const double rowub, std::string name) |
virtual void | addRow (const CoinPackedVectorBase &vec, const char rowsen, const double rowrhs, const double rowrng, std::string name) |
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) |
virtual void | addRows (const int numrows, const CoinBigIndex *rowStarts, const int *columns, const double *element, const double *rowlb, const double *rowub) |
void | addRows (const CoinBuild &buildObject) |
int | addRows (CoinModel &modelObject) |
virtual void | replaceMatrixOptional (const CoinPackedMatrix &) |
virtual void | replaceMatrix (const CoinPackedMatrix &) |
virtual void | saveBaseModel () |
virtual void | restoreBaseModel (int numberRows) |
virtual ApplyCutsReturnCode | applyCuts (const OsiCuts &cs, double effectivenessLb=0.0) |
virtual void | applyRowCuts (int numberCuts, const OsiRowCut *cuts) |
virtual void | applyRowCuts (int numberCuts, const OsiRowCut **cuts) |
void | deleteBranchingInfo (int numberDeleted, const int *which) |
virtual int | loadFromCoinModel (CoinModel &modelObject, bool keepSolution=false) |
virtual int | readMps (const char *filename, const char *extension="mps") |
virtual int | readMps (const char *filename, const char *extension, int &numberSets, CoinSet **&sets) |
virtual int | readGMPL (const char *filename, const char *dataname=NULL) |
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 |
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 |
virtual void | writeLp (FILE *fp, double epsilon=1e-5, int numberAcross=10, int decimals=5, double objSense=0.0, bool useRowNames=true) const |
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 |
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 |
virtual int | readLp (const char *filename, const double epsilon=1e-5) |
int | readLp (FILE *fp, const double epsilon=1e-5) |
int | differentModel (OsiSolverInterface &other, bool ignoreNames=true) |
void | statistics (double &minimumNegative, double &maximumNegative, double &minimumPositive, double &maximumPositive, int type=3) const |
void | setApplicationData (void *appData) |
void | setAuxiliaryInfo (OsiAuxInfo *auxiliaryInfo) |
void * | getApplicationData () const |
OsiAuxInfo * | getAuxiliaryInfo () const |
virtual void | passInMessageHandler (CoinMessageHandler *handler) |
void | newLanguage (CoinMessages::Language language) |
void | setLanguage (CoinMessages::Language language) |
CoinMessageHandler * | messageHandler () const |
CoinMessages | messages () |
CoinMessages * | messagesPointer () |
bool | defaultHandler () const |
void | findIntegers (bool justCount) |
virtual int | findIntegersAndSOS (bool justCount) |
int | numberObjects () const |
void | setNumberObjects (int number) |
OsiObject ** | objects () const |
const OsiObject * | object (int which) const |
OsiObject * | modifiableObject (int which) const |
void | deleteObjects () |
void | addObjects (int numberObjects, OsiObject **objects) |
double | forceFeasible () |
virtual void | activateRowCutDebugger (const char *modelName) |
virtual void | activateRowCutDebugger (const double *solution, bool enforceOptimality=true) |
const OsiRowCutDebugger * | getRowCutDebugger () const |
OsiRowCutDebugger * | getRowCutDebuggerAlways () const |
virtual int | canDoSimplexInterface () const |
virtual void | enableFactorization () const |
virtual void | disableFactorization () const |
virtual bool | basisIsAvailable () const |
bool | optimalBasisIsAvailable () const |
virtual void | getBasisStatus (int *cstat, int *rstat) const |
virtual int | setBasisStatus (const int *cstat, const int *rstat) |
virtual void | getReducedGradient (double *columnReducedCosts, double *duals, const double *c) const |
virtual void | getBInvARow (int row, double *z, double *slack=NULL) const |
virtual void | getBInvRow (int row, double *z) const |
virtual void | getBInvACol (int col, double *vec) const |
virtual void | getBInvCol (int col, double *vec) const |
virtual void | getBasics (int *index) const |
virtual void | enableSimplexInterface (bool doingPrimal) |
virtual void | disableSimplexInterface () |
virtual int | pivot (int colIn, int colOut, int outStatus) |
virtual int | primalPivotResult (int colIn, int sign, int &colOut, int &outStatus, double &t, CoinPackedVector *dx) |
virtual int | dualPivotResult (int &colIn, int &sign, int colOut, int outStatus, double &t, CoinPackedVector *dx) |
OsiSolverInterface () | |
OsiSolverInterface (const OsiSolverInterface &) | |
OsiSolverInterface & | operator= (const OsiSolverInterface &rhs) |
virtual | ~OsiSolverInterface () |
virtual void | reset () |
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 |
void | convertSenseToBound (const char sense, const double right, const double range, double &lower, double &upper) const |
T | forceIntoRange (const T value, const T lower, const T upper) const |
void | setInitialData () |
void | convertBoundToSense (const double lower, const double upper, char &sense, double &right, double &range) const |
void | convertSenseToBound (const char sense, const double right, const double range, double &lower, double &upper) const |
T | forceIntoRange (const T value, const T lower, const T upper) const |
void | setInitialData () |
Protected Attributes | |
OsiData * | data_ |
![]() | |
OsiRowCutDebugger * | rowCutDebugger_ |
CoinMessageHandler * | handler_ |
bool | defaultHandler_ |
CoinMessages | messages_ |
int | numberIntegers_ |
int | numberObjects_ |
OsiObject ** | object_ |
char * | columnType_ |
Additional Inherited Members | |
![]() | |
typedef std::vector< std::string > | OsiNameVec |
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 |
Destructor.
Definition at line 700 of file OsiNullSolverInterface.hpp.
|
inline |
Default Constructor.
Definition at line 676 of file OsiNullSolverInterface2.hpp.
OsiNullSolverInterface::OsiNullSolverInterface | ( | const OsiNullSolverInterface & | ) |
Copy constructor (disabled)
|
inlinevirtual |
Destructor.
Definition at line 700 of file OsiNullSolverInterface2.hpp.
|
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.
|
inlinevirtual |
Invoke solver's built-in enumeration algorithm.
Implements OsiSolverInterface.
Definition at line 54 of file OsiNullSolverInterface.hpp.
void OsiNullSolverInterface::copyParameters | ( | OsiNullSolverInterface & | rhs | ) |
|
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.
|
inlinevirtual |
Is primal infeasiblity proven?
Implements OsiSolverInterface.
Definition at line 77 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Is dual infeasiblity proven?
Implements OsiSolverInterface.
Definition at line 82 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Is the given primal objective limit reached?
Reimplemented from OsiSolverInterface.
Definition at line 87 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Is the given dual objective limit reached?
Reimplemented from OsiSolverInterface.
Definition at line 92 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Iteration limit reached?
Implements OsiSolverInterface.
Definition at line 97 of file OsiNullSolverInterface.hpp.
|
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.
|
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.
|
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.
|
inlinevirtual |
Get number of columns.
Implements OsiSolverInterface.
Definition at line 162 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Get number of rows.
Implements OsiSolverInterface.
Definition at line 167 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Get number of nonzero elements.
Implements OsiSolverInterface.
Definition at line 172 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Get number of integer variables.
Reimplemented from OsiSolverInterface.
Definition at line 184 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Get pointer to array[getNumCols()] of column lower bounds.
Implements OsiSolverInterface.
Definition at line 195 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Get pointer to array[getNumCols()] of column upper bounds.
Implements OsiSolverInterface.
Definition at line 200 of file OsiNullSolverInterface.hpp.
|
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.
|
inlinevirtual |
Get pointer to array[getNumRows()] of row ranges.
Implements OsiSolverInterface.
Definition at line 230 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Implements OsiSolverInterface.
Definition at line 243 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Get pointer to array[getNumRows()] of row lower bounds.
Implements OsiSolverInterface.
Definition at line 248 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Get pointer to array[getNumRows()] of row upper bounds.
Implements OsiSolverInterface.
Definition at line 253 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Get pointer to array[getNumCols()] of objective function coefficients.
Implements OsiSolverInterface.
Definition at line 258 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Get objective function sense (1 for min (default), -1 for max)
Implements OsiSolverInterface.
Definition at line 263 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Return true if variable is continuous.
Implements OsiSolverInterface.
Definition at line 269 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Return true if variable is binary.
Reimplemented from OsiSolverInterface.
Definition at line 274 of file OsiNullSolverInterface.hpp.
|
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.
|
inlinevirtual |
Get pointer to row-wise copy of matrix.
Implements OsiSolverInterface.
Definition at line 288 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Get pointer to column-wise copy of matrix.
Implements OsiSolverInterface.
Definition at line 293 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Get solver's value for infinity.
Implements OsiSolverInterface.
Definition at line 297 of file OsiNullSolverInterface.hpp.
|
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.
|
inlinevirtual |
Get a pointer to array[getNumCols()] of reduced costs.
Implements OsiSolverInterface.
Definition at line 317 of file OsiNullSolverInterface.hpp.
|
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.
|
inlinevirtual |
Get objective function value.
Implements OsiSolverInterface.
Definition at line 329 of file OsiNullSolverInterface.hpp.
|
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.
|
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.
|
inlinevirtual |
Implements OsiSolverInterface.
Definition at line 368 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Set an objective function coefficient.
Implements OsiSolverInterface.
Definition at line 385 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Set a single column lower bound.
Use -getInfinity() for -infinity.
Implements OsiSolverInterface.
Definition at line 391 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Set a single column upper bound.
Use getInfinity() for infinity.
Implements OsiSolverInterface.
Definition at line 397 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Set a single row lower bound.
Use -getInfinity() for -infinity.
Implements OsiSolverInterface.
Definition at line 403 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Set a single row upper bound.
Use getInfinity() for infinity.
Implements OsiSolverInterface.
Definition at line 409 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Set the type of a single row.
Implements OsiSolverInterface.
Definition at line 414 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Set the objective function sense.
(1 for min (default), -1 for max)
Implements OsiSolverInterface.
Definition at line 421 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Set characters for columns types.
colType[i] can have values
Definition at line 433 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Implements OsiSolverInterface.
Definition at line 447 of file OsiNullSolverInterface.hpp.
|
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.
|
inlinevirtual |
Set the index-th variable to be a continuous variable.
Implements OsiSolverInterface.
Definition at line 470 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Set the index-th variable to be an integer variable.
Implements OsiSolverInterface.
Definition at line 475 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Add a column (primal variable) to the problem.
Implements OsiSolverInterface.
Definition at line 492 of file OsiNullSolverInterface.hpp.
|
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.
|
inlinevirtual |
Add a row (constraint) to the problem.
Implements OsiSolverInterface.
Definition at line 509 of file OsiNullSolverInterface.hpp.
|
inlinevirtual |
Implements OsiSolverInterface.
Definition at line 515 of file OsiNullSolverInterface.hpp.
|
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.
|
inline |
Definition at line 535 of file OsiNullSolverInterface.hpp.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
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.
|
inlineprotectedvirtual |
Apply a column cut (adjust the bounds of one or more variables).
Implements OsiSolverInterface.
Definition at line 717 of file OsiNullSolverInterface.hpp.
|
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.
|
inlinevirtual |
Invoke solver's built-in enumeration algorithm.
Implements OsiSolverInterface.
Definition at line 54 of file OsiNullSolverInterface2.hpp.
void OsiNullSolverInterface::copyParameters | ( | OsiNullSolverInterface & | rhs | ) |
|
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.
|
inlinevirtual |
Is primal infeasiblity proven?
Implements OsiSolverInterface.
Definition at line 77 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Is dual infeasiblity proven?
Implements OsiSolverInterface.
Definition at line 82 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Is the given primal objective limit reached?
Reimplemented from OsiSolverInterface.
Definition at line 87 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Is the given dual objective limit reached?
Reimplemented from OsiSolverInterface.
Definition at line 92 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Iteration limit reached?
Implements OsiSolverInterface.
Definition at line 97 of file OsiNullSolverInterface2.hpp.
|
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.
|
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.
|
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.
|
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.
|
inlinevirtual |
Get number of nonzero elements.
Implements OsiSolverInterface.
Definition at line 172 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Get number of integer variables.
Reimplemented from OsiSolverInterface.
Definition at line 184 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Get pointer to array[getNumCols()] of column lower bounds.
Implements OsiSolverInterface.
Definition at line 195 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Get pointer to array[getNumCols()] of column upper bounds.
Implements OsiSolverInterface.
Definition at line 200 of file OsiNullSolverInterface2.hpp.
|
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.
|
inlinevirtual |
Get pointer to array[getNumRows()] of row ranges.
Implements OsiSolverInterface.
Definition at line 230 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Implements OsiSolverInterface.
Definition at line 243 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Get pointer to array[getNumRows()] of row lower bounds.
Implements OsiSolverInterface.
Definition at line 248 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Get pointer to array[getNumRows()] of row upper bounds.
Implements OsiSolverInterface.
Definition at line 253 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Get pointer to array[getNumCols()] of objective function coefficients.
Implements OsiSolverInterface.
Definition at line 258 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Get objective function sense (1 for min (default), -1 for max)
Implements OsiSolverInterface.
Definition at line 263 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Return true if variable is continuous.
Implements OsiSolverInterface.
Definition at line 269 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Return true if variable is binary.
Reimplemented from OsiSolverInterface.
Definition at line 274 of file OsiNullSolverInterface2.hpp.
|
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.
|
inlinevirtual |
Get pointer to row-wise copy of matrix.
Implements OsiSolverInterface.
Definition at line 288 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Get pointer to column-wise copy of matrix.
Implements OsiSolverInterface.
Definition at line 293 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Get solver's value for infinity.
Implements OsiSolverInterface.
Definition at line 297 of file OsiNullSolverInterface2.hpp.
|
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.
|
inlinevirtual |
Get a pointer to array[getNumCols()] of reduced costs.
Implements OsiSolverInterface.
Definition at line 317 of file OsiNullSolverInterface2.hpp.
|
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.
|
inlinevirtual |
Get objective function value.
Implements OsiSolverInterface.
Definition at line 329 of file OsiNullSolverInterface2.hpp.
|
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.
|
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.
|
inlinevirtual |
Implements OsiSolverInterface.
Definition at line 368 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Set an objective function coefficient.
Implements OsiSolverInterface.
Definition at line 385 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Set a single column lower bound.
Use -getInfinity() for -infinity.
Implements OsiSolverInterface.
Definition at line 391 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Set a single column upper bound.
Use getInfinity() for infinity.
Implements OsiSolverInterface.
Definition at line 397 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Set a single row lower bound.
Use -getInfinity() for -infinity.
Implements OsiSolverInterface.
Definition at line 403 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Set a single row upper bound.
Use getInfinity() for infinity.
Implements OsiSolverInterface.
Definition at line 409 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Set the type of a single row.
Implements OsiSolverInterface.
Definition at line 414 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Set the objective function sense.
(1 for min (default), -1 for max)
Implements OsiSolverInterface.
Definition at line 421 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Set characters for columns types.
colType[i] can have values
Definition at line 433 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Implements OsiSolverInterface.
Definition at line 447 of file OsiNullSolverInterface2.hpp.
|
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.
|
inlinevirtual |
Set the index-th variable to be a continuous variable.
Implements OsiSolverInterface.
Definition at line 470 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Set the index-th variable to be an integer variable.
Implements OsiSolverInterface.
Definition at line 475 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Add a column (primal variable) to the problem.
Implements OsiSolverInterface.
Definition at line 492 of file OsiNullSolverInterface2.hpp.
|
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.
|
inlinevirtual |
Add a row (constraint) to the problem.
Implements OsiSolverInterface.
Definition at line 509 of file OsiNullSolverInterface2.hpp.
|
inlinevirtual |
Implements OsiSolverInterface.
Definition at line 515 of file OsiNullSolverInterface2.hpp.
|
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.
|
inline |
Definition at line 535 of file OsiNullSolverInterface2.hpp.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
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.
|
inlineprotectedvirtual |
Apply a column cut (adjust the bounds of one or more variables).
Implements OsiSolverInterface.
Definition at line 717 of file OsiNullSolverInterface2.hpp.
|
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.