#include <OsiNullSolverInterface.hpp>
Public Member Functions | |
Solve methods | |
virtual void | initialSolve () |
Solve initial LP relaxation. | |
virtual void | resolve () |
Resolve an LP relaxation after problem modification. | |
virtual void | branchAndBound () |
Invoke solver's built-in enumeration algorithm. | |
void | copyParameters (OsiNullSolverInterface &rhs) |
Solve initial LP relaxation. | |
virtual void | initialSolve () |
Solve initial LP relaxation. | |
virtual void | resolve () |
Resolve an LP relaxation after problem modification. | |
virtual void | branchAndBound () |
Invoke solver's built-in enumeration algorithm. | |
void | copyParameters (OsiNullSolverInterface &rhs) |
Solve initial LP relaxation. | |
Methods returning info on how the solution process terminated | |
virtual bool | isAbandoned () const |
Are there numerical difficulties? | |
virtual bool | isProvenOptimal () const |
Is optimality proven? | |
virtual bool | isProvenPrimalInfeasible () const |
Is primal infeasiblity proven? | |
virtual bool | isProvenDualInfeasible () const |
Is dual infeasiblity proven? | |
virtual bool | isPrimalObjectiveLimitReached () const |
Is the given primal objective limit reached? | |
virtual bool | isDualObjectiveLimitReached () const |
Is the given dual objective limit reached? | |
virtual bool | isIterationLimitReached () const |
Iteration limit reached? | |
virtual bool | isAbandoned () const |
Are there numerical difficulties? | |
virtual bool | isProvenOptimal () const |
Is optimality proven? | |
virtual bool | isProvenPrimalInfeasible () const |
Is primal infeasiblity proven? | |
virtual bool | isProvenDualInfeasible () const |
Is dual infeasiblity proven? | |
virtual bool | isPrimalObjectiveLimitReached () const |
Is the given primal objective limit reached? | |
virtual bool | isDualObjectiveLimitReached () const |
Is the given dual objective limit reached? | |
virtual bool | isIterationLimitReached () const |
Iteration limit reached? | |
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. | |
virtual CoinWarmStart * | getWarmStart () const |
Get warm start information. | |
virtual bool | setWarmStart (const CoinWarmStart *warmstart) |
Set warm start information. | |
virtual CoinWarmStart * | getEmptyWarmStart () const |
Get an empty warm start object. | |
virtual CoinWarmStart * | getWarmStart () const |
Get warm start information. | |
virtual bool | setWarmStart (const CoinWarmStart *warmstart) |
Set warm start information. | |
Problem query methods | |
virtual int | getNumCols () const |
Get number of columns. | |
virtual int | getNumRows () const |
Get number of rows. | |
virtual int | getNumElements () const |
Get number of nonzero elements. | |
virtual int | getNumIntegers () const |
Get number of integer variables. | |
virtual const double * | getColLower () const |
Get pointer to array[getNumCols()] of column lower bounds. | |
virtual const double * | getColUpper () const |
Get pointer to array[getNumCols()] of column upper bounds. | |
virtual const char * | getRowSense () const |
Get pointer to array[getNumRows()] of row constraint senses. | |
virtual const double * | getRightHandSide () const |
Get a pointer to an array[getNumRows()] of row right-hand sides. | |
virtual const double * | getRowRange () const |
Get number of columns. | |
virtual const double * | getRowLower () const |
Get pointer to array[getNumRows()] of row lower bounds. | |
virtual const double * | getRowUpper () const |
Get pointer to array[getNumRows()] of row upper bounds. | |
virtual const double * | getObjCoefficients () const |
Get pointer to array[getNumCols()] of objective function coefficients. | |
virtual double | getObjSense () const |
Get objective function sense (1 for min (default), -1 for max). | |
virtual bool | isContinuous (int colIndex) const |
Return true if variable is continuous. | |
virtual bool | isBinary (int colIndex) const |
Return true if variable is binary. | |
virtual bool | isInteger (int colIndex) const |
Return true if column is integer. | |
virtual const CoinPackedMatrix * | getMatrixByRow () const |
Get pointer to row-wise copy of matrix. | |
virtual const CoinPackedMatrix * | getMatrixByCol () const |
Get pointer to column-wise copy of matrix. | |
virtual double | getInfinity () const |
Get solver's value for infinity. | |
virtual int | getNumCols () const |
Get number of columns. | |
virtual int | getNumRows () const |
Get number of rows. | |
virtual int | getNumElements () const |
Get number of nonzero elements. | |
virtual int | getNumIntegers () const |
Get number of integer variables. | |
virtual const double * | getColLower () const |
Get pointer to array[getNumCols()] of column lower bounds. | |
virtual const double * | getColUpper () const |
Get pointer to array[getNumCols()] of column upper bounds. | |
virtual const char * | getRowSense () const |
Get pointer to array[getNumRows()] of row constraint senses. | |
virtual const double * | getRightHandSide () const |
Get a pointer to an array[getNumRows()] of row right-hand sides. | |
virtual const double * | getRowRange () const |
Get number of columns. | |
virtual const double * | getRowLower () const |
Get pointer to array[getNumRows()] of row lower bounds. | |
virtual const double * | getRowUpper () const |
Get pointer to array[getNumRows()] of row upper bounds. | |
virtual const double * | getObjCoefficients () const |
Get pointer to array[getNumCols()] of objective function coefficients. | |
virtual double | getObjSense () const |
Get objective function sense (1 for min (default), -1 for max). | |
virtual bool | isContinuous (int colIndex) const |
Return true if variable is continuous. | |
virtual bool | isBinary (int colIndex) const |
Return true if variable is binary. | |
virtual bool | isInteger (int colIndex) const |
Return true if column is integer. | |
virtual const CoinPackedMatrix * | getMatrixByRow () const |
Get pointer to row-wise copy of matrix. | |
virtual const CoinPackedMatrix * | getMatrixByCol () const |
Get pointer to column-wise copy of matrix. | |
virtual double | getInfinity () const |
Get solver's value for infinity. | |
Solution query methods | |
virtual const double * | getColSolution () const |
Get pointer to array[getNumCols()] of primal variable values. | |
virtual const double * | getRowPrice () const |
Get pointer to array[getNumRows()] of dual variable values. | |
virtual const double * | getReducedCost () const |
Get a pointer to array[getNumCols()] of reduced costs. | |
virtual const double * | getRowActivity () const |
Get pointer to array[getNumRows()] of row activity levels (constraint matrix times the solution vector). | |
virtual double | getObjValue () const |
Get objective function value. | |
virtual int | getIterationCount () const |
Get the number of iterations it took to solve the problem (whatever ``iteration'' means to the solver). | |
virtual std::vector< double * > | getDualRays (int maxNumRays) const |
Get as many dual rays as the solver can provide. | |
virtual std::vector< double * > | getPrimalRays (int maxNumRays) const |
Get pointer to array[getNumCols()] of primal variable values. | |
virtual const double * | getColSolution () const |
Get pointer to array[getNumCols()] of primal variable values. | |
virtual const double * | getRowPrice () const |
Get pointer to array[getNumRows()] of dual variable values. | |
virtual const double * | getReducedCost () const |
Get a pointer to array[getNumCols()] of reduced costs. | |
virtual const double * | getRowActivity () const |
Get pointer to array[getNumRows()] of row activity levels (constraint matrix times the solution vector). | |
virtual double | getObjValue () const |
Get objective function value. | |
virtual int | getIterationCount () const |
Get the number of iterations it took to solve the problem (whatever ``iteration'' means to the solver). | |
virtual std::vector< double * > | getDualRays (int maxNumRays) const |
Get as many dual rays as the solver can provide. | |
virtual std::vector< double * > | getPrimalRays (int maxNumRays) const |
Get pointer to array[getNumCols()] of primal variable values. | |
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. | |
virtual void | setColLower (int elementIndex, double elementValue) |
Set a single column lower bound. | |
virtual void | setColUpper (int elementIndex, double elementValue) |
Set a single column upper bound. | |
virtual void | setRowLower (int elementIndex, double elementValue) |
Set a single row lower bound. | |
virtual void | setRowUpper (int elementIndex, double elementValue) |
Set a single row upper bound. | |
virtual void | setRowType (int index, char sense, double rightHandSide, double range) |
Set the type of a single row. | |
virtual void | setObjSense (double s) |
Set the objective function sense. | |
virtual void | setColType (const char *colType) |
Set characters for columns types. | |
virtual void | setColSolution (const double *colsol) |
Set an objective function coefficient. | |
virtual void | setRowPrice (const double *rowprice) |
Set dual solution variable values. | |
virtual void | setObjCoeff (int elementIndex, double elementValue) |
Set an objective function coefficient. | |
virtual void | setColLower (int elementIndex, double elementValue) |
Set a single column lower bound. | |
virtual void | setColUpper (int elementIndex, double elementValue) |
Set a single column upper bound. | |
virtual void | setRowLower (int elementIndex, double elementValue) |
Set a single row lower bound. | |
virtual void | setRowUpper (int elementIndex, double elementValue) |
Set a single row upper bound. | |
virtual void | setRowType (int index, char sense, double rightHandSide, double range) |
Set the type of a single row. | |
virtual void | setObjSense (double s) |
Set the objective function sense. | |
virtual void | setColType (const char *colType) |
Set characters for columns types. | |
virtual void | setColSolution (const double *colsol) |
Set an objective function coefficient. | |
virtual void | setRowPrice (const double *rowprice) |
Set dual solution variable values. | |
Methods to set variable type | |
virtual void | setContinuous (int index) |
Set the index-th variable to be a continuous variable. | |
virtual void | setInteger (int index) |
Set the index-th variable to be an integer variable. | |
virtual void | setContinuous (int index) |
Set the index-th variable to be a continuous variable. | |
virtual void | setInteger (int index) |
Set the index-th variable to be an integer variable. | |
Methods to modify the constraint system. | |
virtual void | addCol (const CoinPackedVectorBase &vec, const double collb, const double colub, const double obj) |
Add a column (primal variable) to the problem. | |
virtual void | deleteCols (const int num, const int *colIndices) |
Remove a set of columns (primal variables) from the problem. | |
virtual void | addRow (const CoinPackedVectorBase &vec, const double rowlb, const double rowub) |
Add a row (constraint) to the problem. | |
virtual void | addRow (const CoinPackedVectorBase &vec, const char rowsen, const double rowrhs, const double rowrng) |
Add a column (primal variable) to the problem. | |
virtual void | deleteRows (const int num, const int *rowIndices) |
Delete a set of rows (constraints) from the problem. | |
virtual void | addCol (const CoinPackedVectorBase &vec, const double collb, const double colub, const double obj) |
Add a column (primal variable) to the problem. | |
virtual void | deleteCols (const int num, const int *colIndices) |
Remove a set of columns (primal variables) from the problem. | |
virtual void | addRow (const CoinPackedVectorBase &vec, const double rowlb, const double rowub) |
Add a row (constraint) to the problem. | |
virtual void | addRow (const CoinPackedVectorBase &vec, const char rowsen, const double rowrhs, const double rowrng) |
Add a column (primal variable) to the problem. | |
virtual void | deleteRows (const int num, const int *rowIndices) |
Delete a set of rows (constraints) from the problem. | |
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). | |
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). | |
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). | |
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). | |
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). | |
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). | |
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). | |
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. | |
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). | |
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). | |
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). | |
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). | |
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). | |
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). | |
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). | |
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. | |
Constructors and destructors | |
OsiNullSolverInterface () | |
Default Constructor. | |
virtual OsiNullSolverInterface * | clone (bool copyData=true) const |
Clone. | |
OsiNullSolverInterface (const OsiNullSolverInterface &) | |
Copy constructor (disabled). | |
OsiNullSolverInterface & | operator= (const OsiNullSolverInterface &rhs) |
Assignment operator (disabled). | |
virtual | ~OsiNullSolverInterface () |
Destructor. | |
OsiNullSolverInterface () | |
Default Constructor. | |
virtual OsiNullSolverInterface * | clone (bool copyData=true) const |
Clone. | |
OsiNullSolverInterface (const OsiNullSolverInterface &) | |
Copy constructor (disabled). | |
OsiNullSolverInterface & | operator= (const OsiNullSolverInterface &rhs) |
Assignment operator (disabled). | |
virtual | ~OsiNullSolverInterface () |
Destructor. | |
Protected Member Functions | |
Protected methods | |
virtual void | applyRowCut (const OsiRowCut &rc) |
Apply a row cut (append to the constraint matrix). | |
virtual void | applyColCut (const OsiColCut &cc) |
Apply a column cut (adjust the bounds of one or more variables). | |
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. | |
virtual void | applyRowCut (const OsiRowCut &rc) |
Apply a row cut (append to the constraint matrix). | |
virtual void | applyColCut (const OsiColCut &cc) |
Apply a column cut (adjust the bounds of one or more variables). | |
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. | |
Protected Attributes | |
OsiData * | data_ |
Definition at line 38 of file OsiNullSolverInterface.hpp.
OsiNullSolverInterface::OsiNullSolverInterface | ( | ) | [inline] |
Default Constructor.
Definition at line 676 of file OsiNullSolverInterface.hpp.
References data_, and OsiNullInfinity.
OsiNullSolverInterface::OsiNullSolverInterface | ( | const OsiNullSolverInterface & | ) |
Copy constructor (disabled).
virtual OsiNullSolverInterface::~OsiNullSolverInterface | ( | ) | [inline, virtual] |
OsiNullSolverInterface::OsiNullSolverInterface | ( | ) | [inline] |
Default Constructor.
Definition at line 676 of file OsiNullSolverInterface2.hpp.
References data_, and OsiNullInfinity.
OsiNullSolverInterface::OsiNullSolverInterface | ( | const OsiNullSolverInterface & | ) |
Copy constructor (disabled).
virtual OsiNullSolverInterface::~OsiNullSolverInterface | ( | ) | [inline, virtual] |
virtual void OsiNullSolverInterface::initialSolve | ( | ) | [inline, virtual] |
Solve initial LP relaxation.
Implements OsiSolverInterface.
Definition at line 44 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::resolve | ( | ) | [inline, virtual] |
Resolve an LP relaxation after problem modification.
Implements OsiSolverInterface.
Definition at line 49 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::branchAndBound | ( | ) | [inline, virtual] |
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.
Reimplemented from OsiSolverInterface.
virtual bool OsiNullSolverInterface::isAbandoned | ( | ) | const [inline, virtual] |
Are there numerical difficulties?
Implements OsiSolverInterface.
Definition at line 67 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual bool OsiNullSolverInterface::isProvenOptimal | ( | ) | const [inline, virtual] |
Is optimality proven?
Implements OsiSolverInterface.
Definition at line 72 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual bool OsiNullSolverInterface::isProvenPrimalInfeasible | ( | ) | const [inline, virtual] |
Is primal infeasiblity proven?
Implements OsiSolverInterface.
Definition at line 77 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual bool OsiNullSolverInterface::isProvenDualInfeasible | ( | ) | const [inline, virtual] |
Is dual infeasiblity proven?
Implements OsiSolverInterface.
Definition at line 82 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual bool OsiNullSolverInterface::isPrimalObjectiveLimitReached | ( | ) | const [inline, virtual] |
Is the given primal objective limit reached?
Reimplemented from OsiSolverInterface.
Definition at line 87 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual bool OsiNullSolverInterface::isDualObjectiveLimitReached | ( | ) | const [inline, virtual] |
Is the given dual objective limit reached?
Reimplemented from OsiSolverInterface.
Definition at line 92 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual bool OsiNullSolverInterface::isIterationLimitReached | ( | ) | const [inline, virtual] |
Iteration limit reached?
Implements OsiSolverInterface.
Definition at line 97 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual CoinWarmStart* OsiNullSolverInterface::getEmptyWarmStart | ( | ) | const [inline, virtual] |
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.
virtual CoinWarmStart* OsiNullSolverInterface::getWarmStart | ( | ) | const [inline, virtual] |
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.
virtual bool OsiNullSolverInterface::setWarmStart | ( | const CoinWarmStart * | warmstart | ) | [inline, virtual] |
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.
virtual int OsiNullSolverInterface::getNumCols | ( | ) | const [inline, virtual] |
Get number of columns.
Implements OsiSolverInterface.
Definition at line 162 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getNcol().
Referenced by getNumIntegers().
virtual int OsiNullSolverInterface::getNumRows | ( | ) | const [inline, virtual] |
Get number of rows.
Implements OsiSolverInterface.
Definition at line 167 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getNrow().
virtual int OsiNullSolverInterface::getNumElements | ( | ) | const [inline, virtual] |
Get number of nonzero elements.
Implements OsiSolverInterface.
Definition at line 172 of file OsiNullSolverInterface.hpp.
References data_, OsiData::getMatrixByCol(), OsiData::getMatrixByRow(), and CoinPackedMatrix::getNumElements().
virtual int OsiNullSolverInterface::getNumIntegers | ( | ) | const [inline, virtual] |
Get number of integer variables.
Reimplemented from OsiSolverInterface.
Definition at line 184 of file OsiNullSolverInterface.hpp.
References data_, OsiData::getColType(), and getNumCols().
virtual const double* OsiNullSolverInterface::getColLower | ( | ) | const [inline, virtual] |
Get pointer to array[getNumCols()] of column lower bounds.
Implements OsiSolverInterface.
Definition at line 195 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getColLower().
virtual const double* OsiNullSolverInterface::getColUpper | ( | ) | const [inline, virtual] |
Get pointer to array[getNumCols()] of column upper bounds.
Implements OsiSolverInterface.
Definition at line 200 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getColUpper().
virtual const char* OsiNullSolverInterface::getRowSense | ( | ) | const [inline, virtual] |
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().
virtual const double* OsiNullSolverInterface::getRightHandSide | ( | ) | const [inline, virtual] |
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().
virtual const double* OsiNullSolverInterface::getRowRange | ( | ) | const [inline, virtual] |
Get number of columns.
Implements OsiSolverInterface.
Definition at line 243 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getRowRange().
virtual const double* OsiNullSolverInterface::getRowLower | ( | ) | const [inline, virtual] |
Get pointer to array[getNumRows()] of row lower bounds.
Implements OsiSolverInterface.
Definition at line 248 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getRowLower().
virtual const double* OsiNullSolverInterface::getRowUpper | ( | ) | const [inline, virtual] |
Get pointer to array[getNumRows()] of row upper bounds.
Implements OsiSolverInterface.
Definition at line 253 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getRowUpper().
virtual const double* OsiNullSolverInterface::getObjCoefficients | ( | ) | const [inline, virtual] |
Get pointer to array[getNumCols()] of objective function coefficients.
Implements OsiSolverInterface.
Definition at line 258 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getObj().
virtual double OsiNullSolverInterface::getObjSense | ( | ) | const [inline, virtual] |
Get objective function sense (1 for min (default), -1 for max).
Implements OsiSolverInterface.
Definition at line 263 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual bool OsiNullSolverInterface::isContinuous | ( | int | colIndex | ) | const [inline, virtual] |
Return true if variable is continuous.
Implements OsiSolverInterface.
Definition at line 269 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getColType().
virtual bool OsiNullSolverInterface::isBinary | ( | int | colIndex | ) | const [inline, virtual] |
Return true if variable is binary.
Reimplemented from OsiSolverInterface.
Definition at line 274 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getColType().
virtual bool OsiNullSolverInterface::isInteger | ( | int | colIndex | ) | const [inline, virtual] |
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().
virtual const CoinPackedMatrix* OsiNullSolverInterface::getMatrixByRow | ( | ) | const [inline, virtual] |
Get pointer to row-wise copy of matrix.
Implements OsiSolverInterface.
Definition at line 288 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getMatrixByRow().
virtual const CoinPackedMatrix* OsiNullSolverInterface::getMatrixByCol | ( | ) | const [inline, virtual] |
Get pointer to column-wise copy of matrix.
Implements OsiSolverInterface.
Definition at line 293 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getMatrixByCol().
virtual double OsiNullSolverInterface::getInfinity | ( | ) | const [inline, virtual] |
Get solver's value for infinity.
Implements OsiSolverInterface.
Definition at line 297 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getInfinity().
virtual const double* OsiNullSolverInterface::getColSolution | ( | ) | const [inline, virtual] |
Get pointer to array[getNumCols()] of primal variable values.
Implements OsiSolverInterface.
Definition at line 305 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::getPrimalSol().
virtual const double* OsiNullSolverInterface::getRowPrice | ( | ) | const [inline, virtual] |
Get pointer to array[getNumRows()] of dual variable values.
Implements OsiSolverInterface.
Definition at line 311 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual const double* OsiNullSolverInterface::getReducedCost | ( | ) | const [inline, virtual] |
Get a pointer to array[getNumCols()] of reduced costs.
Implements OsiSolverInterface.
Definition at line 317 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual const double* OsiNullSolverInterface::getRowActivity | ( | ) | const [inline, virtual] |
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().
virtual double OsiNullSolverInterface::getObjValue | ( | ) | const [inline, virtual] |
Get objective function value.
Implements OsiSolverInterface.
Definition at line 329 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual int OsiNullSolverInterface::getIterationCount | ( | ) | const [inline, virtual] |
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.
virtual std::vector<double*> OsiNullSolverInterface::getDualRays | ( | int | maxNumRays | ) | const [inline, virtual] |
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.
virtual std::vector<double*> OsiNullSolverInterface::getPrimalRays | ( | int | maxNumRays | ) | const [inline, virtual] |
Get pointer to array[getNumCols()] of primal variable values.
Implements OsiSolverInterface.
Definition at line 368 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setObjCoeff | ( | int | elementIndex, | |
double | elementValue | |||
) | [inline, virtual] |
Set an objective function coefficient.
Implements OsiSolverInterface.
Definition at line 385 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setColLower | ( | int | elementIndex, | |
double | elementValue | |||
) | [inline, virtual] |
Set a single column lower bound.
Use -getInfinity() for -infinity.
Implements OsiSolverInterface.
Definition at line 391 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setColUpper | ( | int | elementIndex, | |
double | elementValue | |||
) | [inline, virtual] |
Set a single column upper bound.
Use getInfinity() for infinity.
Implements OsiSolverInterface.
Definition at line 397 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setRowLower | ( | int | elementIndex, | |
double | elementValue | |||
) | [inline, virtual] |
Set a single row lower bound.
Use -getInfinity() for -infinity.
Implements OsiSolverInterface.
Definition at line 403 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setRowUpper | ( | int | elementIndex, | |
double | elementValue | |||
) | [inline, virtual] |
Set a single row upper bound.
Use getInfinity() for infinity.
Implements OsiSolverInterface.
Definition at line 409 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setRowType | ( | int | index, | |
char | sense, | |||
double | rightHandSide, | |||
double | range | |||
) | [inline, virtual] |
Set the type of a single row.
Implements OsiSolverInterface.
Definition at line 414 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setObjSense | ( | double | s | ) | [inline, virtual] |
Set the objective function sense.
(1 for min (default), -1 for max)
Implements OsiSolverInterface.
Definition at line 421 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setColType | ( | const char * | colType | ) | [inline, virtual] |
Set characters for columns types.
colType[i] can have values
Definition at line 433 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::setColType().
virtual void OsiNullSolverInterface::setColSolution | ( | const double * | colsol | ) | [inline, virtual] |
Set an objective function coefficient.
Implements OsiSolverInterface.
Definition at line 447 of file OsiNullSolverInterface.hpp.
References data_, and OsiData::setPrimalSol().
virtual void OsiNullSolverInterface::setRowPrice | ( | const double * | rowprice | ) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::setContinuous | ( | int | index | ) | [inline, virtual] |
Set the index-th variable to be a continuous variable.
Implements OsiSolverInterface.
Definition at line 470 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setInteger | ( | int | index | ) | [inline, virtual] |
Set the index-th variable to be an integer variable.
Implements OsiSolverInterface.
Definition at line 475 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::addCol | ( | const CoinPackedVectorBase & | vec, | |
const double | collb, | |||
const double | colub, | |||
const double | obj | |||
) | [inline, virtual] |
Add a column (primal variable) to the problem.
Implements OsiSolverInterface.
Definition at line 492 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::deleteCols | ( | const int | num, | |
const int * | colIndices | |||
) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::addRow | ( | const CoinPackedVectorBase & | vec, | |
const double | rowlb, | |||
const double | rowub | |||
) | [inline, virtual] |
Add a row (constraint) to the problem.
Implements OsiSolverInterface.
Definition at line 509 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::addRow | ( | const CoinPackedVectorBase & | vec, | |
const char | rowsen, | |||
const double | rowrhs, | |||
const double | rowrng | |||
) | [inline, virtual] |
Add a column (primal variable) to the problem.
Implements OsiSolverInterface.
Definition at line 515 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::deleteRows | ( | const int | num, | |
const int * | rowIndices | |||
) | [inline, virtual] |
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.
void OsiNullSolverInterface::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 | |||
) | [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().
virtual void OsiNullSolverInterface::loadProblem | ( | const CoinPackedMatrix & | matrix, | |
const double * | collb, | |||
const double * | colub, | |||
const double * | obj, | |||
const double * | rowlb, | |||
const double * | rowub | |||
) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::assignProblem | ( | CoinPackedMatrix *& | matrix, | |
double *& | collb, | |||
double *& | colub, | |||
double *& | obj, | |||
double *& | rowlb, | |||
double *& | rowub | |||
) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::loadProblem | ( | const CoinPackedMatrix & | matrix, | |
const double * | collb, | |||
const double * | colub, | |||
const double * | obj, | |||
const char * | rowsen, | |||
const double * | rowrhs, | |||
const double * | rowrng | |||
) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::assignProblem | ( | CoinPackedMatrix *& | matrix, | |
double *& | collb, | |||
double *& | colub, | |||
double *& | obj, | |||
char *& | rowsen, | |||
double *& | rowrhs, | |||
double *& | rowrng | |||
) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::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 | |||
) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::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 | |||
) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::writeMps | ( | const char * | filename, | |
const char * | extension = "mps" , |
|||
double | objSense = 0.0 | |||
) | const [inline, virtual] |
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.
virtual OsiNullSolverInterface* OsiNullSolverInterface::clone | ( | bool | copyData = true |
) | const [inline, virtual] |
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).
Reimplemented from OsiSolverInterface.
virtual void OsiNullSolverInterface::applyRowCut | ( | const OsiRowCut & | rc | ) | [inline, protected, virtual] |
Apply a row cut (append to the constraint matrix).
Implements OsiSolverInterface.
Definition at line 712 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::applyColCut | ( | const OsiColCut & | cc | ) | [inline, protected, virtual] |
Apply a column cut (adjust the bounds of one or more variables).
Implements OsiSolverInterface.
Definition at line 717 of file OsiNullSolverInterface.hpp.
References CoinAssertHint.
T OsiNullSolverInterface::forceIntoRange | ( | const T | value, | |
const T | lower, | |||
const T | upper | |||
) | const [inline, protected] |
A quick inlined function to force a value to be between a minimum and a maximum value.
Reimplemented from OsiSolverInterface.
Definition at line 723 of file OsiNullSolverInterface.hpp.
virtual void OsiNullSolverInterface::initialSolve | ( | ) | [inline, virtual] |
Solve initial LP relaxation.
Implements OsiSolverInterface.
Definition at line 44 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::resolve | ( | ) | [inline, virtual] |
Resolve an LP relaxation after problem modification.
Implements OsiSolverInterface.
Definition at line 49 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::branchAndBound | ( | ) | [inline, virtual] |
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.
Reimplemented from OsiSolverInterface.
virtual bool OsiNullSolverInterface::isAbandoned | ( | ) | const [inline, virtual] |
Are there numerical difficulties?
Implements OsiSolverInterface.
Definition at line 67 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual bool OsiNullSolverInterface::isProvenOptimal | ( | ) | const [inline, virtual] |
Is optimality proven?
Implements OsiSolverInterface.
Definition at line 72 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual bool OsiNullSolverInterface::isProvenPrimalInfeasible | ( | ) | const [inline, virtual] |
Is primal infeasiblity proven?
Implements OsiSolverInterface.
Definition at line 77 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual bool OsiNullSolverInterface::isProvenDualInfeasible | ( | ) | const [inline, virtual] |
Is dual infeasiblity proven?
Implements OsiSolverInterface.
Definition at line 82 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual bool OsiNullSolverInterface::isPrimalObjectiveLimitReached | ( | ) | const [inline, virtual] |
Is the given primal objective limit reached?
Reimplemented from OsiSolverInterface.
Definition at line 87 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual bool OsiNullSolverInterface::isDualObjectiveLimitReached | ( | ) | const [inline, virtual] |
Is the given dual objective limit reached?
Reimplemented from OsiSolverInterface.
Definition at line 92 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual bool OsiNullSolverInterface::isIterationLimitReached | ( | ) | const [inline, virtual] |
Iteration limit reached?
Implements OsiSolverInterface.
Definition at line 97 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual CoinWarmStart* OsiNullSolverInterface::getEmptyWarmStart | ( | ) | const [inline, virtual] |
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.
virtual CoinWarmStart* OsiNullSolverInterface::getWarmStart | ( | ) | const [inline, virtual] |
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.
virtual bool OsiNullSolverInterface::setWarmStart | ( | const CoinWarmStart * | warmstart | ) | [inline, virtual] |
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.
virtual int OsiNullSolverInterface::getNumCols | ( | ) | const [inline, virtual] |
Get number of columns.
Implements OsiSolverInterface.
Definition at line 162 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getNcol().
virtual int OsiNullSolverInterface::getNumRows | ( | ) | const [inline, virtual] |
Get number of rows.
Implements OsiSolverInterface.
Definition at line 167 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getNrow().
virtual int OsiNullSolverInterface::getNumElements | ( | ) | const [inline, virtual] |
Get number of nonzero elements.
Implements OsiSolverInterface.
Definition at line 172 of file OsiNullSolverInterface2.hpp.
References data_, OsiData::getMatrixByCol(), OsiData::getMatrixByRow(), and CoinPackedMatrix::getNumElements().
virtual int OsiNullSolverInterface::getNumIntegers | ( | ) | const [inline, virtual] |
Get number of integer variables.
Reimplemented from OsiSolverInterface.
Definition at line 184 of file OsiNullSolverInterface2.hpp.
References data_, OsiData::getColType(), and getNumCols().
virtual const double* OsiNullSolverInterface::getColLower | ( | ) | const [inline, virtual] |
Get pointer to array[getNumCols()] of column lower bounds.
Implements OsiSolverInterface.
Definition at line 195 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getColLower().
virtual const double* OsiNullSolverInterface::getColUpper | ( | ) | const [inline, virtual] |
Get pointer to array[getNumCols()] of column upper bounds.
Implements OsiSolverInterface.
Definition at line 200 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getColUpper().
virtual const char* OsiNullSolverInterface::getRowSense | ( | ) | const [inline, virtual] |
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().
virtual const double* OsiNullSolverInterface::getRightHandSide | ( | ) | const [inline, virtual] |
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().
virtual const double* OsiNullSolverInterface::getRowRange | ( | ) | const [inline, virtual] |
Get number of columns.
Implements OsiSolverInterface.
Definition at line 243 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getRowRange().
virtual const double* OsiNullSolverInterface::getRowLower | ( | ) | const [inline, virtual] |
Get pointer to array[getNumRows()] of row lower bounds.
Implements OsiSolverInterface.
Definition at line 248 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getRowLower().
virtual const double* OsiNullSolverInterface::getRowUpper | ( | ) | const [inline, virtual] |
Get pointer to array[getNumRows()] of row upper bounds.
Implements OsiSolverInterface.
Definition at line 253 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getRowUpper().
virtual const double* OsiNullSolverInterface::getObjCoefficients | ( | ) | const [inline, virtual] |
Get pointer to array[getNumCols()] of objective function coefficients.
Implements OsiSolverInterface.
Definition at line 258 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getObj().
virtual double OsiNullSolverInterface::getObjSense | ( | ) | const [inline, virtual] |
Get objective function sense (1 for min (default), -1 for max).
Implements OsiSolverInterface.
Definition at line 263 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual bool OsiNullSolverInterface::isContinuous | ( | int | colIndex | ) | const [inline, virtual] |
Return true if variable is continuous.
Implements OsiSolverInterface.
Definition at line 269 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getColType().
virtual bool OsiNullSolverInterface::isBinary | ( | int | colIndex | ) | const [inline, virtual] |
Return true if variable is binary.
Reimplemented from OsiSolverInterface.
Definition at line 274 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getColType().
virtual bool OsiNullSolverInterface::isInteger | ( | int | colIndex | ) | const [inline, virtual] |
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().
virtual const CoinPackedMatrix* OsiNullSolverInterface::getMatrixByRow | ( | ) | const [inline, virtual] |
Get pointer to row-wise copy of matrix.
Implements OsiSolverInterface.
Definition at line 288 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getMatrixByRow().
virtual const CoinPackedMatrix* OsiNullSolverInterface::getMatrixByCol | ( | ) | const [inline, virtual] |
Get pointer to column-wise copy of matrix.
Implements OsiSolverInterface.
Definition at line 293 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getMatrixByCol().
virtual double OsiNullSolverInterface::getInfinity | ( | ) | const [inline, virtual] |
Get solver's value for infinity.
Implements OsiSolverInterface.
Definition at line 297 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getInfinity().
virtual const double* OsiNullSolverInterface::getColSolution | ( | ) | const [inline, virtual] |
Get pointer to array[getNumCols()] of primal variable values.
Implements OsiSolverInterface.
Definition at line 305 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::getPrimalSol().
virtual const double* OsiNullSolverInterface::getRowPrice | ( | ) | const [inline, virtual] |
Get pointer to array[getNumRows()] of dual variable values.
Implements OsiSolverInterface.
Definition at line 311 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual const double* OsiNullSolverInterface::getReducedCost | ( | ) | const [inline, virtual] |
Get a pointer to array[getNumCols()] of reduced costs.
Implements OsiSolverInterface.
Definition at line 317 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual const double* OsiNullSolverInterface::getRowActivity | ( | ) | const [inline, virtual] |
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().
virtual double OsiNullSolverInterface::getObjValue | ( | ) | const [inline, virtual] |
Get objective function value.
Implements OsiSolverInterface.
Definition at line 329 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual int OsiNullSolverInterface::getIterationCount | ( | ) | const [inline, virtual] |
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.
virtual std::vector<double*> OsiNullSolverInterface::getDualRays | ( | int | maxNumRays | ) | const [inline, virtual] |
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.
virtual std::vector<double*> OsiNullSolverInterface::getPrimalRays | ( | int | maxNumRays | ) | const [inline, virtual] |
Get pointer to array[getNumCols()] of primal variable values.
Implements OsiSolverInterface.
Definition at line 368 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setObjCoeff | ( | int | elementIndex, | |
double | elementValue | |||
) | [inline, virtual] |
Set an objective function coefficient.
Implements OsiSolverInterface.
Definition at line 385 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setColLower | ( | int | elementIndex, | |
double | elementValue | |||
) | [inline, virtual] |
Set a single column lower bound.
Use -getInfinity() for -infinity.
Implements OsiSolverInterface.
Definition at line 391 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setColUpper | ( | int | elementIndex, | |
double | elementValue | |||
) | [inline, virtual] |
Set a single column upper bound.
Use getInfinity() for infinity.
Implements OsiSolverInterface.
Definition at line 397 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setRowLower | ( | int | elementIndex, | |
double | elementValue | |||
) | [inline, virtual] |
Set a single row lower bound.
Use -getInfinity() for -infinity.
Implements OsiSolverInterface.
Definition at line 403 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setRowUpper | ( | int | elementIndex, | |
double | elementValue | |||
) | [inline, virtual] |
Set a single row upper bound.
Use getInfinity() for infinity.
Implements OsiSolverInterface.
Definition at line 409 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setRowType | ( | int | index, | |
char | sense, | |||
double | rightHandSide, | |||
double | range | |||
) | [inline, virtual] |
Set the type of a single row.
Implements OsiSolverInterface.
Definition at line 414 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setObjSense | ( | double | s | ) | [inline, virtual] |
Set the objective function sense.
(1 for min (default), -1 for max)
Implements OsiSolverInterface.
Definition at line 421 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setColType | ( | const char * | colType | ) | [inline, virtual] |
Set characters for columns types.
colType[i] can have values
Definition at line 433 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::setColType().
virtual void OsiNullSolverInterface::setColSolution | ( | const double * | colsol | ) | [inline, virtual] |
Set an objective function coefficient.
Implements OsiSolverInterface.
Definition at line 447 of file OsiNullSolverInterface2.hpp.
References data_, and OsiData::setPrimalSol().
virtual void OsiNullSolverInterface::setRowPrice | ( | const double * | rowprice | ) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::setContinuous | ( | int | index | ) | [inline, virtual] |
Set the index-th variable to be a continuous variable.
Implements OsiSolverInterface.
Definition at line 470 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::setInteger | ( | int | index | ) | [inline, virtual] |
Set the index-th variable to be an integer variable.
Implements OsiSolverInterface.
Definition at line 475 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::addCol | ( | const CoinPackedVectorBase & | vec, | |
const double | collb, | |||
const double | colub, | |||
const double | obj | |||
) | [inline, virtual] |
Add a column (primal variable) to the problem.
Implements OsiSolverInterface.
Definition at line 492 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::deleteCols | ( | const int | num, | |
const int * | colIndices | |||
) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::addRow | ( | const CoinPackedVectorBase & | vec, | |
const double | rowlb, | |||
const double | rowub | |||
) | [inline, virtual] |
Add a row (constraint) to the problem.
Implements OsiSolverInterface.
Definition at line 509 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::addRow | ( | const CoinPackedVectorBase & | vec, | |
const char | rowsen, | |||
const double | rowrhs, | |||
const double | rowrng | |||
) | [inline, virtual] |
Add a column (primal variable) to the problem.
Implements OsiSolverInterface.
Definition at line 515 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::deleteRows | ( | const int | num, | |
const int * | rowIndices | |||
) | [inline, virtual] |
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.
void OsiNullSolverInterface::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 | |||
) | [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().
virtual void OsiNullSolverInterface::loadProblem | ( | const CoinPackedMatrix & | matrix, | |
const double * | collb, | |||
const double * | colub, | |||
const double * | obj, | |||
const double * | rowlb, | |||
const double * | rowub | |||
) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::assignProblem | ( | CoinPackedMatrix *& | matrix, | |
double *& | collb, | |||
double *& | colub, | |||
double *& | obj, | |||
double *& | rowlb, | |||
double *& | rowub | |||
) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::loadProblem | ( | const CoinPackedMatrix & | matrix, | |
const double * | collb, | |||
const double * | colub, | |||
const double * | obj, | |||
const char * | rowsen, | |||
const double * | rowrhs, | |||
const double * | rowrng | |||
) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::assignProblem | ( | CoinPackedMatrix *& | matrix, | |
double *& | collb, | |||
double *& | colub, | |||
double *& | obj, | |||
char *& | rowsen, | |||
double *& | rowrhs, | |||
double *& | rowrng | |||
) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::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 | |||
) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::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 | |||
) | [inline, virtual] |
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.
virtual void OsiNullSolverInterface::writeMps | ( | const char * | filename, | |
const char * | extension = "mps" , |
|||
double | objSense = 0.0 | |||
) | const [inline, virtual] |
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.
virtual OsiNullSolverInterface* OsiNullSolverInterface::clone | ( | bool | copyData = true |
) | const [inline, virtual] |
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).
Reimplemented from OsiSolverInterface.
virtual void OsiNullSolverInterface::applyRowCut | ( | const OsiRowCut & | rc | ) | [inline, protected, virtual] |
Apply a row cut (append to the constraint matrix).
Implements OsiSolverInterface.
Definition at line 712 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
virtual void OsiNullSolverInterface::applyColCut | ( | const OsiColCut & | cc | ) | [inline, protected, virtual] |
Apply a column cut (adjust the bounds of one or more variables).
Implements OsiSolverInterface.
Definition at line 717 of file OsiNullSolverInterface2.hpp.
References CoinAssertHint.
T OsiNullSolverInterface::forceIntoRange | ( | const T | value, | |
const T | lower, | |||
const T | upper | |||
) | const [inline, protected] |
A quick inlined function to force a value to be between a minimum and a maximum value.
Reimplemented from OsiSolverInterface.
Definition at line 723 of file OsiNullSolverInterface2.hpp.
OsiData * OsiNullSolverInterface::data_ [protected] |
Definition at line 730 of file OsiNullSolverInterface.hpp.
Referenced by getColLower(), getColSolution(), getColUpper(), getInfinity(), getMatrixByCol(), getMatrixByRow(), getNumCols(), getNumElements(), getNumIntegers(), getNumRows(), getObjCoefficients(), getRightHandSide(), getRowActivity(), getRowLower(), getRowRange(), getRowSense(), getRowUpper(), isBinary(), isContinuous(), isInteger(), loadDataAndSolution(), OsiNullSolverInterface(), setColSolution(), setColType(), and ~OsiNullSolverInterface().