OsiSolverInterface Class Reference

Solver Interface Abstract Base Class. More...

#include <OsiSolverInterface.hpp>

Inheritance diagram for OsiSolverInterface:

Inheritance graph
[legend]
Collaboration diagram for OsiSolverInterface:

Collaboration graph
[legend]
List of all members.

Private member data

CoinMessageHandlerhandler_
 Message handler.
bool defaultHandler_
 Flag to say if the currrent handler is the default handler.
CoinMessages messages_
 Messages.
OsiAuxInfoappDataEtc_
 Pointer to user-defined data structure - and more if user wants.
int intParam_ [OsiLastIntParam]
 Array of integer parameters.
double dblParam_ [OsiLastDblParam]
 Array of double parameters.
std::string strParam_ [OsiLastStrParam]
 Array of string parameters.
bool hintParam_ [OsiLastHintParam]
 Array of hint parameters.
OsiHintStrength hintStrength_ [OsiLastHintParam]
 Array of hint strengths.
CoinWarmStartws_
 Warm start information used for hot starts when the default hot start implementation is used.

Public Member Functions

Solve methods
virtual void initialSolve ()=0
 Solve initial LP relaxation.
virtual void resolve ()=0
 Resolve an LP relaxation after problem modification.
virtual void branchAndBound ()=0
 Invoke solver's built-in enumeration algorithm.
Parameter set/get methods
The set methods return true if the parameter was set to the given value, false otherwise. There can be various reasons for failure: the given parameter is not applicable for the solver (e.g., refactorization frequency for the volume algorithm), the parameter is not yet implemented for the solver or simply the value of the parameter is out of the range the solver accepts. If a parameter setting call returns false check the details of your solver.

The get methods return true if the given parameter is applicable for the solver and is implemented. In this case the value of the parameter is returned in the second argument. Otherwise they return false.

Note:
There is a default implementation of the set/get methods, namely to store/retrieve the given value using an array in the base class. A specific solver implementation can use this feature, for example, to store parameters that should be used later on. Implementors of a solver interface should overload these functions to provide the proper interface to and accurately reflect the capabilities of a specific solver.
The format for hints is slightly different in that the value is boolean and there is an enum to show strength of hint. There is also an optional void pointer to allow for any eventuality. Hints should be initialised when a solver is instantiated. (See OsiSolverParameters.hpp for defined hint parameters and strength.) A value of true means to work with the hint, false to work against it. For example,
  •  setHintParam(OsiDoScale,true,OsiHintTry) 
    
    is a mild suggestion to the solver to scale the constraint system.
  •  setHintParam(OsiDoScale,false,OsiForceDo) 
    
    tells the solver to disable scaling, or throw an exception if it cannot comply.
As another example, a solver interface could use the value and strength of the OsiDoReducePrint hint to adjust the amount of information printed by the interface and/or solver. The extent to which a solver obeys hints is left to the solver. The value and strength returned by getHintParam will match the most recent call to setHintParam, and will not necessarily reflect the solver's ability to comply with the hint. If the hint strength is OsiForceDo, the solver is required to throw an exception if it cannot perform the specified action.

Note:
As with the other set/get methods, there is a default implementation which maintains arrays in the base class for hint value and strength. The default implementation does not store the void pointer, and always throws an exception for strength OsiForceDo. Implementors of a solver interface should overload these functions to provide the proper interface to and accurately reflect the capabilities of a specific solver.


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 *otherInformation=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)
Methods returning info on how the solution process terminated
virtual bool isAbandoned () const =0
 Are there numerical difficulties?
virtual bool isProvenOptimal () const =0
 Is optimality proven?
virtual bool isProvenPrimalInfeasible () const =0
 Is primal infeasiblity proven?
virtual bool isProvenDualInfeasible () const =0
 Is dual infeasiblity proven?
virtual bool isPrimalObjectiveLimitReached () const =0
 Is the given primal objective limit reached?
virtual bool isDualObjectiveLimitReached () const =0
 Is the given dual objective limit reached?
virtual bool isIterationLimitReached () const =0
 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 CoinWarmStartgetEmptyWarmStart () const =0
 Get an empty warm start object.
virtual CoinWarmStartgetWarmStart () const =0
 Get warm start information.
virtual bool setWarmStart (const CoinWarmStart *warmstart)=0
 Set warm start information.
Hot start methods
Primarily used in strong branching. The user can create a hot start object --- a snapshot of the optimization process --- then reoptimize over and over again, starting from the same point.

Note:
  • Between hot started optimizations only bound changes are allowed.
  • The copy constructor and assignment operator should NOT copy any hot start information.
  • The default implementation simply extracts a warm start object in markHotStart, resets to the warm start object in solveFromHotStart, and deletes the warm start object in unmarkHotStart. Actual solver implementations are encouraged to do better.


virtual void markHotStart ()
 Create a hot start snapshot of the optimization process.
virtual void solveFromHotStart ()
 Optimize starting from the hot start snapshot.
virtual void unmarkHotStart ()
 Delete the hot start snapshot.
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 =0
 Get number of columns.
virtual int getNumRows () const =0
 Get number of rows.
virtual int getNumElements () const =0
 Get number of nonzero elements.
virtual int getNumIntegers () const
 Get number of integer variables.
virtual const double * getColLower () const =0
 Get pointer to array[getNumCols()] of column lower bounds.
virtual const double * getColUpper () const =0
 Get pointer to array[getNumCols()] of column upper bounds.
virtual const char * getRowSense () const =0
 Get pointer to array[getNumRows()] of row constraint senses.
virtual const double * getRightHandSide () const =0
 Get pointer to array[getNumRows()] of row right-hand sides.
virtual const double * getRowRange () const =0
 Get pointer to array[getNumRows()] of row ranges.
virtual const double * getRowLower () const =0
 Get pointer to array[getNumRows()] of row lower bounds.
virtual const double * getRowUpper () const =0
 Get pointer to array[getNumRows()] of row upper bounds.
virtual const double * getObjCoefficients () const =0
 Get pointer to array[getNumCols()] of objective function coefficients.
virtual double getObjSense () const =0
 Get objective function sense (1 for min (default), -1 for max).
virtual bool isContinuous (int colIndex) const =0
 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 bool isIntegerNonBinary (int colIndex) const
 Return true if variable is general integer.
virtual bool isFreeBinary (int colIndex) const
 Return true if variable is binary and not fixed at either bound.
virtual const CoinPackedMatrixgetMatrixByRow () const =0
 Get pointer to row-wise copy of matrix.
virtual const CoinPackedMatrixgetMatrixByCol () const =0
 Get pointer to column-wise copy of matrix.
virtual double getInfinity () const =0
 Get solver's value for infinity.
Solution query methods
virtual const double * getColSolution () const =0
 Get pointer to array[getNumCols()] of primal variable values.
virtual const double * getRowPrice () const =0
 Get pointer to array[getNumRows()] of dual variable values.
virtual const double * getReducedCost () const =0
 Get a pointer to array[getNumCols()] of reduced costs.
virtual const double * getRowActivity () const =0
 Get pointer to array[getNumRows()] of row activity levels (constraint matrix times the solution vector).
virtual double getObjValue () const =0
 Get objective function value.
virtual int getIterationCount () const =0
 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 =0
 Get as many dual rays as the solver can provide.
virtual std::vector< double * > getPrimalRays (int maxNumRays) const =0
 Get as many primal rays as the solver can provide.
virtual OsiVectorInt getFractionalIndices (const double etol=1.e-05) const
 Get vector of indices of primal variables which are integer variables but have fractional values in the current solution.
Methods to modify the objective, bounds, and solution
For functions which take a set of indices as parameters (setObjCoeffSet(), setColSetBounds(), setRowSetBounds(), setRowSetTypes()), the parameters follow the C++ STL iterator convention: indexFirst points to the first index in the set, and indexLast points to a position one past the last index in the set.

virtual void setObjCoeff (int elementIndex, double elementValue)=0
 Set an objective function coefficient.
virtual void setObjCoeffSet (const int *indexFirst, const int *indexLast, const double *coeffList)
 Set a set of objective function coefficients.
virtual void setColLower (int elementIndex, double elementValue)=0
 Set a single column lower bound.
virtual void setColUpper (int elementIndex, double elementValue)=0
 Set a single column upper bound.
virtual void setColBounds (int elementIndex, double lower, double upper)
 Set a single column lower and upper bound.
virtual void setColSetBounds (const int *indexFirst, const int *indexLast, const double *boundList)
 Set the upper and lower bounds of a set of columns.
virtual void setRowLower (int elementIndex, double elementValue)=0
 Set a single row lower bound.
virtual void setRowUpper (int elementIndex, double elementValue)=0
 Set a single row upper bound.
virtual void setRowBounds (int elementIndex, double lower, double upper)
 Set a single row lower and upper bound.
virtual void setRowType (int index, char sense, double rightHandSide, double range)=0
 Set the type of a single row.
virtual void setRowSetBounds (const int *indexFirst, const int *indexLast, const double *boundList)
 Set the bounds on a set of rows.
virtual void setRowSetTypes (const int *indexFirst, const int *indexLast, const char *senseList, const double *rhsList, const double *rangeList)
 Set the type of a set of rows.
virtual void setObjSense (double s)=0
 Set the objective function sense.
virtual void setColSolution (const double *colsol)=0
 Set the primal solution variable values.
virtual void setRowPrice (const double *rowprice)=0
 Set dual solution variable values.
virtual void setObjective (const double *array)
 Set the objective coefficients for all columns array [getNumCols()] is an array of values for the objective.
virtual void setColLower (const double *array)
 Set the lower bounds for all columns array [getNumCols()] is an array of values for the objective.
virtual void setColUpper (const double *array)
 Set the upper bounds for all columns array [getNumCols()] is an array of values for the objective.
Methods to set variable type
virtual void setContinuous (int index)=0
 Set the index-th variable to be a continuous variable.
virtual void setInteger (int index)=0
 Set the index-th variable to be an integer variable.
virtual void setContinuous (const int *indices, int len)
 Set the variables listed in indices (which is of length len) to be continuous variables.
virtual void setInteger (const int *indices, int len)
 Set the variables listed in indices (which is of length len) to be integer variables.
Methods to modify the constraint system.
Note that new columns are added as continuous variables.

virtual void addCol (const CoinPackedVectorBase &vec, const double collb, const double colub, const double obj)=0
 Add a column (primal variable) to the problem.
virtual void addCols (const int numcols, const CoinPackedVectorBase *const *cols, const double *collb, const double *colub, const double *obj)
 Add a set of columns (primal variables) to the problem.
virtual void addCol (int numberElements, const int *rows, const double *elements, const double collb, const double colub, const double obj)
 Add a column (primal variable) to the problem.
virtual void addCols (const int numcols, const int *columnStarts, const int *rows, const double *elements, const double *collb, const double *colub, const double *obj)
 Add a set of columns (primal variables) to the problem.
void addCols (const CoinBuild &buildObject)
 Add columns using a CoinBuild object.
int addCols (CoinModel &modelObject)
 Add columns from a model object.
virtual void deleteCols (const int num, const int *colIndices)=0
 Remove a set of columns (primal variables) from the problem.
virtual void addRow (const CoinPackedVectorBase &vec, const double rowlb, const double rowub)=0
 Add a row (constraint) to the problem.
virtual void addRow (const CoinPackedVectorBase &vec, const char rowsen, const double rowrhs, const double rowrng)=0
 Add a column (primal variable) to the problem.
virtual void addRows (const int numrows, const CoinPackedVectorBase *const *rows, const double *rowlb, const double *rowub)
 Add a set of rows (constraints) to the problem.
virtual void addRows (const int numrows, const CoinPackedVectorBase *const *rows, const char *rowsen, const double *rowrhs, const double *rowrng)
 Add a set of rows (constraints) to the problem.
virtual void addRow (int numberElements, const int *columns, const double *element, const double rowlb, const double rowub)
 Add a row (constraint) to the problem.
virtual void addRows (const int numrows, const int *rowStarts, const int *columns, const double *element, const double *rowlb, const double *rowub)
 Add a set of rows (constraints) to the problem.
void addRows (const CoinBuild &buildObject)
 Add rows using a CoinBuild object.
int addRows (CoinModel &modelObject)
 Add rows from a model object.
virtual void deleteRows (const int num, const int *rowIndices)=0
 Delete a set of rows (constraints) from the problem.
virtual ApplyCutsReturnCode applyCuts (const OsiCuts &cs, double effectivenessLb=0.0)
 Apply a collection of cuts.
virtual void applyRowCuts (int numberCuts, const OsiRowCut *cuts)
 Apply a collection of row cuts which are all effective.
virtual void applyRowCuts (int numberCuts, const OsiRowCut **cuts)
 Apply a collection of row cuts which are all effective.
Methods to input a problem
virtual void loadProblem (const CoinPackedMatrix &matrix, const double *collb, const double *colub, const double *obj, const double *rowlb, const double *rowub)=0
 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)=0
 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)=0
 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)=0
 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)=0
 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)=0
 Just like the other loadProblem() methods except that the matrix is given in a standard column major ordered format (without gaps).
virtual int loadFromCoinModel (CoinModel &modelObject, bool keepSolution=false)
 This loads a model from a coinModel object - returns number of errors.
virtual int readMps (const char *filename, const char *extension="mps")
 Read a problem in MPS format from the given filename.
virtual int readMps (const char *filename, const char *extension, int &numberSets, CoinSet **&sets)
 Read a problem in MPS format from the given full filename.
virtual int readGMPL (const char *filename, const char *dataname=NULL)
 Read a problem in GMPL format from the given filenames.
virtual void writeMps (const char *filename, const char *extension="mps", double objSense=0.0) const =0
 Write the problem in MPS format to the specified file.
int writeMpsNative (const char *filename, const char **rowNames, const char **columnNames, int formatType=0, int numberAcross=2, double objSense=0.0) const
 Write the problem in MPS format to the specified file.
virtual void writeLp (const char *filename, const char *extension="lp", double epsilon=1e-5, int numberAcross=10, int decimals=5, double objSense=0.0, bool useRowNames=true) const
 Write the problem into an Lp file of the given filename with the specified extension.
virtual void writeLp (FILE *fp, double epsilon=1e-5, int numberAcross=10, int decimals=5, double objSense=0.0, bool useRowNames=true) const
 Write the problem into the file pointed to by the parameter fp.
int writeLpNative (const char *filename, char const *const *const rowNames, char const *const *const columnNames, const double epsilon=1.0e-5, const int numberAcross=10, const int decimals=5, const double objSense=0.0, const bool useRowNames=true) const
 Write the problem into an Lp file.
int writeLpNative (FILE *fp, char const *const *const rowNames, char const *const *const columnNames, const double epsilon=1.0e-5, const int numberAcross=10, const int decimals=5, const double objSense=0.0, const bool useRowNames=true) const
 Write the problem into the file pointed to by the parameter fp.
virtual int readLp (const char *filename, const double epsilon=1e-5)
 Read file in LP format from file with name filename.
int readLp (FILE *fp, const double epsilon=1e-5)
 Read file in LP format from the file pointed to by fp.
virtual void replaceMatrixOptional (const CoinPackedMatrix &matrix)
 I (JJF) am getting annoyed because I can't just replace a matrix.
virtual void replaceMatrix (const CoinPackedMatrix &matrix)
 And if it does matter (not used at present).
Setting/Accessing application data
void setApplicationData (void *appData)
 Set application data.
void setAuxiliaryInfo (OsiAuxInfo *auxiliaryInfo)
 Create a clone of an Auxiliary Information object.
void * getApplicationData () const
 Get application data.
OsiAuxInfogetAuxiliaryInfo () const
 Get pointer to auxiliary info object.
Message handling
See the COIN library documentation for additional information about COIN message facilities.

void passInMessageHandler (CoinMessageHandler *handler)
 Pass in a message handler.
void newLanguage (CoinMessages::Language language)
 Set language.
void setLanguage (CoinMessages::Language language)
 Pass in a message handler.
CoinMessageHandlermessageHandler () const
 Return a pointer to the current message handler.
CoinMessages messages ()
 Return the current set of messages.
CoinMessagesmessagesPointer ()
 Return a pointer to the current set of messages.
Methods related to testing generated cuts
virtual void activateRowCutDebugger (const char *modelName)
 Activate the row cut debugger.
virtual void activateRowCutDebugger (const double *solution)
 Activate debugger using full solution array.
const OsiRowCutDebuggergetRowCutDebugger () const
 Get the row cut debugger.
const OsiRowCutDebuggergetRowCutDebuggerAlways () const
 If you want to get debugger object even if not on optimal path then use this.
OsiSimplexInterface methods
Abstract Base Class for describing an advanced interface to a simplex solver. When switched on allows great control of simplex iterations. Also allows access to tableau.

virtual int canDoSimplexInterface () const
 Returns 1 if can just do getBInv etc 2 if has all OsiSimplex methods and 0 if it has none.
virtual void enableSimplexInterface (bool doingPrimal)
 Enables normal operation of subsequent functions.
virtual void disableSimplexInterface ()
 Undo whatever setting changes the above method had to make.
virtual void enableFactorization () const
 Tells solver that calls to getBInv etc are about to take place.
virtual void disableFactorization () const
 and stop
virtual bool basisIsAvailable () const
 Returns true if a basis is available AND problem is optimal.
bool optimalBasisIsAvailable () const
 Synonym for basisIsAvailable!
virtual void getBasisStatus (int *cstat, int *rstat) const
 The following two methods may be replaced by the methods of OsiSolverInterface using OsiWarmStartBasis if: 1.
virtual int setBasisStatus (const int *cstat, const int *rstat)
 Set the status of structural/artificial variables and factorize, update solution etc.
virtual int pivot (int colIn, int colOut, int outStatus)
 Perform a pivot by substituting a colIn for colOut in the basis.
virtual int primalPivotResult (int colIn, int sign, int &colOut, int &outStatus, double &t, CoinPackedVector *dx)
 Obtain a result of the primal pivot Outputs: colOut -- leaving column, outStatus -- its status, t -- step size, and, if dx!=NULL, *dx -- primal ray direction.
virtual int dualPivotResult (int &colIn, int &sign, int colOut, int outStatus, double &t, CoinPackedVector *dx)
 Obtain a result of the dual pivot (similar to the previous method) Differences: entering variable and a sign of its change are now the outputs, the leaving variable and its statuts -- the inputs If dx!=NULL, then *dx contains dual ray Return code: same.
virtual void getReducedGradient (double *columnReducedCosts, double *duals, const double *c)
 Get the reduced gradient for the cost vector c.
virtual void setObjectiveAndRefresh (double *c)
 Set a new objective and apply the old basis so that the reduced costs are properly updated.
virtual void getBInvARow (int row, double *z, double *slack=NULL) const
 Get a row of the tableau (slack part in slack if not NULL).
virtual void getBInvRow (int row, double *z) const
 Get a row of the basis inverse.
virtual void getBInvACol (int col, double *vec) const
 Get a column of the tableau.
virtual void getBInvCol (int col, double *vec) const
 Get a column of the basis inverse.
virtual void getBasics (int *index) const
 Get basic indices (order of indices corresponds to the order of elements in a vector retured by getBInvACol() and getBInvCol()).
Constructors and destructors
 OsiSolverInterface ()
 Default Constructor.
virtual OsiSolverInterfaceclone (bool copyData=true) const =0
 Clone.
 OsiSolverInterface (const OsiSolverInterface &)
 Copy constructor.
OsiSolverInterfaceoperator= (const OsiSolverInterface &rhs)
 Assignment operator.
virtual ~OsiSolverInterface ()
 Destructor.
virtual void reset ()
 Reset the solver interface.

Protected Member Functions

Protected methods
virtual void applyRowCut (const OsiRowCut &rc)=0
 Apply a row cut (append to the constraint matrix).
virtual void applyColCut (const OsiColCut &cc)=0
 Apply a column cut (adjust the bounds of one or more variables).
void convertBoundToSense (const double lower, const double upper, char &sense, double &right, double &range) const
 A quick inlined function to convert from the lb/ub style of constraint definition to the sense/rhs/range style.
void convertSenseToBound (const char sense, const double right, const double range, double &lower, double &upper) const
 A quick inlined function to convert from the sense/rhs/range style of constraint definition to the lb/ub style.
template<class 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.
void setInitialData ()
 Set OsiSolverInterface object state for default constructor.

Protected Attributes

Protected member data
OsiRowCutDebuggerrowCutDebugger_
 Pointer to row cut debugger object.

Friends

void OsiSolverInterfaceCommonUnitTest (const OsiSolverInterface *emptySi, const std::string &mpsDir, const std::string &netlibDir)
 A function that tests the methods in the OsiSolverInterface class.
void OsiSolverInterfaceMpsUnitTest (const std::vector< OsiSolverInterface * > &vecSiP, const std::string &mpsDir)
 A function that tests that a lot of problems given in MPS files (mostly the NETLIB problems) solve properly with all the specified solvers.

Classes

class  ApplyCutsReturnCode
 Internal class for obtaining status from the applyCuts method. More...

Detailed Description

Solver Interface Abstract Base Class.

Abstract Base Class for describing an interface to a solver.

Many OsiSolverInterface query methods return a const pointer to the requested read-only data. If the model data is changed or the solver is called, these pointers may no longer be valid and should be refreshed by invoking the member function to obtain an updated copy of the pointer. For example:

      OsiSolverInterface solverInterfacePtr ;
      const double * ruBnds = solverInterfacePtr->getRowUpper();
      solverInterfacePtr->applyCuts(someSetOfCuts);
      // ruBnds is no longer a valid pointer and must be refreshed
      ruBnds = solverInterfacePtr->getRowUpper();

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.

Definition at line 54 of file OsiSolverInterface.hpp.


Constructor & Destructor Documentation

OsiSolverInterface::OsiSolverInterface (  ) 

Default Constructor.

OsiSolverInterface::OsiSolverInterface ( const OsiSolverInterface  ) 

Copy constructor.

virtual OsiSolverInterface::~OsiSolverInterface (  )  [virtual]

Destructor.


Member Function Documentation

virtual void OsiSolverInterface::initialSolve (  )  [pure virtual]

Solve initial LP relaxation.

Implemented in CbcSolver2, CbcSolver3, CbcSolverLongThin, ClpQuadInterface, OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::resolve (  )  [pure virtual]

Resolve an LP relaxation after problem modification.

Implemented in CbcSolver2, CbcSolver3, CbcSolverLongThin, ClpQuadInterface, OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::branchAndBound (  )  [pure virtual]

Invoke solver's built-in enumeration algorithm.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual bool OsiSolverInterface::setIntParam ( OsiIntParam  key,
int  value 
) [inline, virtual]

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Definition at line 243 of file OsiSolverInterface.hpp.

References intParam_, and OsiLastIntParam.

virtual bool OsiSolverInterface::setDblParam ( OsiDblParam  key,
double  value 
) [inline, virtual]

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Definition at line 249 of file OsiSolverInterface.hpp.

References dblParam_, and OsiLastDblParam.

virtual bool OsiSolverInterface::setStrParam ( OsiStrParam  key,
const std::string &  value 
) [inline, virtual]

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Definition at line 255 of file OsiSolverInterface.hpp.

References OsiLastStrParam, and strParam_.

virtual bool OsiSolverInterface::setHintParam ( OsiHintParam  key,
bool  yesNo = true,
OsiHintStrength  strength = OsiHintTry,
void *  otherInformation = NULL 
) [inline, virtual]

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, and OsiDylpSolverInterface.

Definition at line 261 of file OsiSolverInterface.hpp.

References hintParam_, hintStrength_, OsiForceDo, and OsiLastHintParam.

virtual bool OsiSolverInterface::getIntParam ( OsiIntParam  key,
int &  value 
) const [inline, virtual]

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Definition at line 274 of file OsiSolverInterface.hpp.

References intParam_, and OsiLastIntParam.

virtual bool OsiSolverInterface::getDblParam ( OsiDblParam  key,
double &  value 
) const [inline, virtual]

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Definition at line 280 of file OsiSolverInterface.hpp.

References dblParam_, and OsiLastDblParam.

virtual bool OsiSolverInterface::getStrParam ( OsiStrParam  key,
std::string &  value 
) const [inline, virtual]

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Definition at line 286 of file OsiSolverInterface.hpp.

References OsiLastStrParam, and strParam_.

virtual bool OsiSolverInterface::getHintParam ( OsiHintParam  key,
bool &  yesNo,
OsiHintStrength strength,
void *&  otherInformation 
) const [inline, virtual]

Reimplemented in OsiCbcSolverInterface, and OsiDylpSolverInterface.

Definition at line 292 of file OsiSolverInterface.hpp.

References hintParam_, hintStrength_, and OsiLastHintParam.

virtual bool OsiSolverInterface::getHintParam ( OsiHintParam  key,
bool &  yesNo,
OsiHintStrength strength 
) const [inline, virtual]

Reimplemented in OsiCbcSolverInterface.

Definition at line 303 of file OsiSolverInterface.hpp.

References hintParam_, hintStrength_, and OsiLastHintParam.

virtual bool OsiSolverInterface::getHintParam ( OsiHintParam  key,
bool &  yesNo 
) const [inline, virtual]

Definition at line 312 of file OsiSolverInterface.hpp.

References hintParam_, and OsiLastHintParam.

void OsiSolverInterface::copyParameters ( OsiSolverInterface rhs  ) 

virtual bool OsiSolverInterface::isAbandoned (  )  const [pure virtual]

Are there numerical difficulties?

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual bool OsiSolverInterface::isProvenOptimal (  )  const [pure virtual]

Is optimality proven?

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual bool OsiSolverInterface::isProvenPrimalInfeasible (  )  const [pure virtual]

Is primal infeasiblity proven?

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual bool OsiSolverInterface::isProvenDualInfeasible (  )  const [pure virtual]

Is dual infeasiblity proven?

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual bool OsiSolverInterface::isPrimalObjectiveLimitReached (  )  const [pure virtual]

Is the given primal objective limit reached?

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual bool OsiSolverInterface::isDualObjectiveLimitReached (  )  const [pure virtual]

Is the given dual objective limit reached?

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual bool OsiSolverInterface::isIterationLimitReached (  )  const [pure virtual]

Iteration limit reached?

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual CoinWarmStart* OsiSolverInterface::getEmptyWarmStart (  )  const [pure 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.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual CoinWarmStart* OsiSolverInterface::getWarmStart (  )  const [pure 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.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual bool OsiSolverInterface::setWarmStart ( const CoinWarmStart warmstart  )  [pure 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.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::markHotStart (  )  [virtual]

Create a hot start snapshot of the optimization process.

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::solveFromHotStart (  )  [virtual]

Optimize starting from the hot start snapshot.

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::unmarkHotStart (  )  [virtual]

Delete the hot start snapshot.

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual int OsiSolverInterface::getNumCols (  )  const [pure virtual]

Get number of columns.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by OsiColCut::consistent(), and CbcModel::getNumCols().

virtual int OsiSolverInterface::getNumRows (  )  const [pure virtual]

Get number of rows.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getNumRows().

virtual int OsiSolverInterface::getNumElements (  )  const [pure virtual]

Get number of nonzero elements.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getNumElements().

virtual int OsiSolverInterface::getNumIntegers (  )  const [virtual]

Get number of integer variables.

Reimplemented in OsiDylpSolverInterface.

virtual const double* OsiSolverInterface::getColLower (  )  const [pure virtual]

Get pointer to array[getNumCols()] of column lower bounds.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getColLower(), and OsiColCut::infeasible().

virtual const double* OsiSolverInterface::getColUpper (  )  const [pure virtual]

Get pointer to array[getNumCols()] of column upper bounds.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getColUpper(), and OsiColCut::infeasible().

virtual const char* OsiSolverInterface::getRowSense (  )  const [pure virtual]

Get pointer to array[getNumRows()] of row constraint senses.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getRowSense().

virtual const double* OsiSolverInterface::getRightHandSide (  )  const [pure virtual]

Get pointer to array[getNumRows()] of row right-hand sides.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getRightHandSide().

virtual const double* OsiSolverInterface::getRowRange (  )  const [pure virtual]

Get pointer to array[getNumRows()] of row ranges.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getRowRange().

virtual const double* OsiSolverInterface::getRowLower (  )  const [pure virtual]

Get pointer to array[getNumRows()] of row lower bounds.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getRowLower().

virtual const double* OsiSolverInterface::getRowUpper (  )  const [pure virtual]

Get pointer to array[getNumRows()] of row upper bounds.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getRowUpper().

virtual const double* OsiSolverInterface::getObjCoefficients (  )  const [pure virtual]

Get pointer to array[getNumCols()] of objective function coefficients.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getObjCoefficients().

virtual double OsiSolverInterface::getObjSense (  )  const [pure virtual]

Get objective function sense (1 for min (default), -1 for max).

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getObjValue(), and CbcModel::setObjValue().

virtual bool OsiSolverInterface::isContinuous ( int  colIndex  )  const [pure virtual]

Return true if variable is continuous.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::isContinuous().

virtual bool OsiSolverInterface::isBinary ( int  colIndex  )  const [virtual]

Return true if variable is binary.

Reimplemented in OsiDylpSolverInterface, and OsiSymSolverInterface.

Referenced by CbcModel::isBinary().

virtual bool OsiSolverInterface::isInteger ( int  colIndex  )  const [virtual]

Return true if column is integer.

Note: This function returns true if the the column is binary or a general integer.

Reimplemented in OsiDylpSolverInterface, and OsiSymSolverInterface.

Referenced by CbcModel::isInteger().

virtual bool OsiSolverInterface::isIntegerNonBinary ( int  colIndex  )  const [virtual]

Return true if variable is general integer.

Reimplemented in OsiDylpSolverInterface, and OsiSymSolverInterface.

Referenced by CbcModel::isIntegerNonBinary().

virtual bool OsiSolverInterface::isFreeBinary ( int  colIndex  )  const [virtual]

Return true if variable is binary and not fixed at either bound.

Reimplemented in OsiSymSolverInterface.

Referenced by CbcModel::isFreeBinary().

virtual const CoinPackedMatrix* OsiSolverInterface::getMatrixByRow (  )  const [pure virtual]

Get pointer to row-wise copy of matrix.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getMatrixByRow().

virtual const CoinPackedMatrix* OsiSolverInterface::getMatrixByCol (  )  const [pure virtual]

Get pointer to column-wise copy of matrix.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getMatrixByCol().

virtual double OsiSolverInterface::getInfinity (  )  const [pure virtual]

Get solver's value for infinity.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by convertBoundToSense(), convertSenseToBound(), and CbcModel::getInfinity().

virtual const double* OsiSolverInterface::getColSolution (  )  const [pure virtual]

Get pointer to array[getNumCols()] of primal variable values.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getColSolution().

virtual const double* OsiSolverInterface::getRowPrice (  )  const [pure virtual]

Get pointer to array[getNumRows()] of dual variable values.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getRowPrice().

virtual const double* OsiSolverInterface::getReducedCost (  )  const [pure virtual]

Get a pointer to array[getNumCols()] of reduced costs.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getReducedCost().

virtual const double* OsiSolverInterface::getRowActivity (  )  const [pure virtual]

Get pointer to array[getNumRows()] of row activity levels (constraint matrix times the solution vector).

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::getRowActivity().

virtual double OsiSolverInterface::getObjValue (  )  const [pure virtual]

Get objective function value.

Implemented in ClpQuadInterface, OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by OsiVolSolverInterface::getObjValue().

virtual int OsiSolverInterface::getIterationCount (  )  const [pure virtual]

Get the number of iterations it took to solve the problem (whatever ``iteration'' means to the solver).

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual std::vector<double*> OsiSolverInterface::getDualRays ( int  maxNumRays  )  const [pure virtual]

Get as many dual rays as the solver can provide.

In case of proven primal infeasibility there should be at least one.

Note:
Implementors of solver interfaces note that the double pointers in the vector should point to arrays of length getNumRows() and they should be allocated via new[].

Clients of solver interfaces note that it is the client's responsibility to free the double pointers in the vector using delete[].

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual std::vector<double*> OsiSolverInterface::getPrimalRays ( int  maxNumRays  )  const [pure virtual]

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[].

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual OsiVectorInt OsiSolverInterface::getFractionalIndices ( const double  etol = 1.e-05  )  const [virtual]

Get vector of indices of primal variables which are integer variables but have fractional values in the current solution.

virtual void OsiSolverInterface::setObjCoeff ( int  elementIndex,
double  elementValue 
) [pure virtual]

Set an objective function coefficient.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::setObjCoeffSet ( const int *  indexFirst,
const int *  indexLast,
const double *  coeffList 
) [virtual]

Set a set of objective function coefficients.

Reimplemented in OsiCpxSolverInterface, and OsiMskSolverInterface.

virtual void OsiSolverInterface::setColLower ( int  elementIndex,
double  elementValue 
) [pure virtual]

Set a single column lower bound.

Use -getInfinity() for -infinity.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by setColBounds().

virtual void OsiSolverInterface::setColUpper ( int  elementIndex,
double  elementValue 
) [pure virtual]

Set a single column upper bound.

Use getInfinity() for infinity.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by setColBounds().

virtual void OsiSolverInterface::setColBounds ( int  elementIndex,
double  lower,
double  upper 
) [inline, virtual]

Set a single column lower and upper bound.

The default implementation just invokes setColLower() and setColUpper()

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiSpxSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Definition at line 605 of file OsiSolverInterface.hpp.

References setColLower(), and setColUpper().

virtual void OsiSolverInterface::setColSetBounds ( const int *  indexFirst,
const int *  indexLast,
const double *  boundList 
) [virtual]

Set the upper and lower bounds of a set of columns.

The default implementation just invokes setColBounds() over and over again. For each column, boundList must contain both a lower and upper bound, in that order.

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::setRowLower ( int  elementIndex,
double  elementValue 
) [pure virtual]

Set a single row lower bound.

Use -getInfinity() for -infinity.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by setRowBounds().

virtual void OsiSolverInterface::setRowUpper ( int  elementIndex,
double  elementValue 
) [pure virtual]

Set a single row upper bound.

Use getInfinity() for infinity.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by setRowBounds().

virtual void OsiSolverInterface::setRowBounds ( int  elementIndex,
double  lower,
double  upper 
) [inline, virtual]

Set a single row lower and upper bound.

The default implementation just invokes setRowLower() and setRowUpper()

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Definition at line 632 of file OsiSolverInterface.hpp.

References setRowLower(), and setRowUpper().

virtual void OsiSolverInterface::setRowType ( int  index,
char  sense,
double  rightHandSide,
double  range 
) [pure virtual]

Set the type of a single row.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::setRowSetBounds ( const int *  indexFirst,
const int *  indexLast,
const double *  boundList 
) [virtual]

Set the bounds on a set of rows.

The default implementation just invokes setRowBounds() over and over again.

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::setRowSetTypes ( const int *  indexFirst,
const int *  indexLast,
const char *  senseList,
const double *  rhsList,
const double *  rangeList 
) [virtual]

Set the type of a set of rows.

The default implementation just invokes setRowType() over and over again.

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::setObjSense ( double  s  )  [pure virtual]

Set the objective function sense.

(1 for min (default), -1 for max)

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

Referenced by CbcModel::setObjSense().

virtual void OsiSolverInterface::setColSolution ( const double *  colsol  )  [pure virtual]

Set the primal solution variable values.

colsol[getNumCols()] is an array of values for the primal variables. These values are copied to memory owned by the solver interface object or the solver. They will be returned as the result of getColSolution() until changed by another call to setColSolution() or by a call to any solver routine. Whether the solver makes use of the solution in any way is solver-dependent.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::setRowPrice ( const double *  rowprice  )  [pure 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.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::setObjective ( const double *  array  )  [virtual]

Set the objective coefficients for all columns array [getNumCols()] is an array of values for the objective.

This defaults to a series of set operations and is here for speed.

Reimplemented in OsiClpSolverInterface.

virtual void OsiSolverInterface::setColLower ( const double *  array  )  [virtual]

Set the lower bounds for all columns array [getNumCols()] is an array of values for the objective.

This defaults to a series of set operations and is here for speed.

Reimplemented in OsiClpSolverInterface.

virtual void OsiSolverInterface::setColUpper ( const double *  array  )  [virtual]

Set the upper bounds for all columns array [getNumCols()] is an array of values for the objective.

This defaults to a series of set operations and is here for speed.

Reimplemented in OsiClpSolverInterface.

virtual void OsiSolverInterface::setContinuous ( int  index  )  [pure virtual]

Set the index-th variable to be a continuous variable.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::setInteger ( int  index  )  [pure virtual]

Set the index-th variable to be an integer variable.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::setContinuous ( const int *  indices,
int  len 
) [virtual]

Set the variables listed in indices (which is of length len) to be continuous variables.

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::setInteger ( const int *  indices,
int  len 
) [virtual]

Set the variables listed in indices (which is of length len) to be integer variables.

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::addCol ( const CoinPackedVectorBase vec,
const double  collb,
const double  colub,
const double  obj 
) [pure virtual]

Add a column (primal variable) to the problem.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::addCols ( const int  numcols,
const CoinPackedVectorBase *const *  cols,
const double *  collb,
const double *  colub,
const double *  obj 
) [virtual]

Add a set of columns (primal variables) to the problem.

The default implementation simply makes repeated calls to addCol().

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::addCol ( int  numberElements,
const int *  rows,
const double *  elements,
const double  collb,
const double  colub,
const double  obj 
) [virtual]

Add a column (primal variable) to the problem.

Reimplemented in OsiCbcSolverInterface, and OsiClpSolverInterface.

virtual void OsiSolverInterface::addCols ( const int  numcols,
const int *  columnStarts,
const int *  rows,
const double *  elements,
const double *  collb,
const double *  colub,
const double *  obj 
) [virtual]

Add a set of columns (primal variables) to the problem.

The default implementation simply makes repeated calls to addCol().

void OsiSolverInterface::addCols ( const CoinBuild buildObject  ) 

Add columns using a CoinBuild object.

int OsiSolverInterface::addCols ( CoinModel modelObject  ) 

Add columns from a model object.

returns -1 if object in bad state (i.e. has row information) otherwise number of errors modelObject non const as can be regularized as part of build

virtual void OsiSolverInterface::deleteCols ( const int  num,
const int *  colIndices 
) [pure 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.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::addRow ( const CoinPackedVectorBase vec,
const double  rowlb,
const double  rowub 
) [pure virtual]

Add a row (constraint) to the problem.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::addRow ( const CoinPackedVectorBase vec,
const char  rowsen,
const double  rowrhs,
const double  rowrng 
) [pure virtual]

Add a column (primal variable) to the problem.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::addRows ( const int  numrows,
const CoinPackedVectorBase *const *  rows,
const double *  rowlb,
const double *  rowub 
) [virtual]

Add a set of rows (constraints) to the problem.

The default implementation simply makes repeated calls to addRow().

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::addRows ( const int  numrows,
const CoinPackedVectorBase *const *  rows,
const char *  rowsen,
const double *  rowrhs,
const double *  rowrng 
) [virtual]

Add a set of rows (constraints) to the problem.

The default implementation simply makes repeated calls to addRow().

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::addRow ( int  numberElements,
const int *  columns,
const double *  element,
const double  rowlb,
const double  rowub 
) [virtual]

Add a row (constraint) to the problem.

virtual void OsiSolverInterface::addRows ( const int  numrows,
const int *  rowStarts,
const int *  columns,
const double *  element,
const double *  rowlb,
const double *  rowub 
) [virtual]

Add a set of rows (constraints) to the problem.

The default implementation simply makes repeated calls to addRow().

void OsiSolverInterface::addRows ( const CoinBuild buildObject  ) 

Add rows using a CoinBuild object.

int OsiSolverInterface::addRows ( CoinModel modelObject  ) 

Add rows from a model object.

returns -1 if object in bad state (i.e. has column information) otherwise number of errors.

modelObject non const as can be regularized as part of build

virtual void OsiSolverInterface::deleteRows ( const int  num,
const int *  rowIndices 
) [pure 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.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual ApplyCutsReturnCode OsiSolverInterface::applyCuts ( const OsiCuts cs,
double  effectivenessLb = 0.0 
) [virtual]

Apply a collection of cuts.

Only cuts which have an effectiveness >= effectivenessLb are applied.

virtual void OsiSolverInterface::applyRowCuts ( int  numberCuts,
const OsiRowCut cuts 
) [virtual]

Apply a collection of row cuts which are all effective.

applyCuts seems to do one at a time which seems inefficient. Would be even more efficient to pass an array of pointers.

Reimplemented in OsiCbcSolverInterface, and OsiClpSolverInterface.

virtual void OsiSolverInterface::applyRowCuts ( int  numberCuts,
const OsiRowCut **  cuts 
) [virtual]

Apply a collection of row cuts which are all effective.

This is passed in as an array of pointers.

Reimplemented in OsiCbcSolverInterface, and OsiClpSolverInterface.

virtual void OsiSolverInterface::loadProblem ( const CoinPackedMatrix matrix,
const double *  collb,
const double *  colub,
const double *  obj,
const double *  rowlb,
const double *  rowub 
) [pure 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:

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::assignProblem ( CoinPackedMatrix *&  matrix,
double *&  collb,
double *&  colub,
double *&  obj,
double *&  rowlb,
double *&  rowub 
) [pure 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.

Warning:
The arguments passed to this method will be freed using the C++ delete and delete[] functions.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::loadProblem ( const CoinPackedMatrix matrix,
const double *  collb,
const double *  colub,
const double *  obj,
const char *  rowsen,
const double *  rowrhs,
const double *  rowrng 
) [pure 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:

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::assignProblem ( CoinPackedMatrix *&  matrix,
double *&  collb,
double *&  colub,
double *&  obj,
char *&  rowsen,
double *&  rowrhs,
double *&  rowrng 
) [pure 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.

Warning:
The arguments passed to this method will be freed using the C++ delete and delete[] functions.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::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 
) [pure virtual]

Just like the other loadProblem() methods except that the matrix is given in a standard column major ordered format (without gaps).

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::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 
) [pure virtual]

Just like the other loadProblem() methods except that the matrix is given in a standard column major ordered format (without gaps).

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual int OsiSolverInterface::loadFromCoinModel ( CoinModel modelObject,
bool  keepSolution = false 
) [virtual]

This loads a model from a coinModel object - returns number of errors.

modelObject not const as may be changed as part of process. If keepSolution true will try and keep warmStart

Reimplemented in OsiClpSolverInterface.

virtual int OsiSolverInterface::readMps ( const char *  filename,
const char *  extension = "mps" 
) [virtual]

Read a problem in MPS format from the given filename.

The default implementation uses CoinMpsIO::readMps() to read the MPS file and returns the number of errors encountered.

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual int OsiSolverInterface::readMps ( const char *  filename,
const char *  extension,
int &  numberSets,
CoinSet **&  sets 
) [virtual]

Read a problem in MPS format from the given full filename.

This uses CoinMpsIO::readMps() to read the MPS file and returns the number of errors encountered. It also may return an array of set information

Reimplemented in OsiDylpSolverInterface.

virtual int OsiSolverInterface::readGMPL ( const char *  filename,
const char *  dataname = NULL 
) [virtual]

Read a problem in GMPL format from the given filenames.

Will only work if glpk installed

Reimplemented in OsiSymSolverInterface.

virtual void OsiSolverInterface::writeMps ( const char *  filename,
const char *  extension = "mps",
double  objSense = 0.0 
) const [pure 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.

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

int OsiSolverInterface::writeMpsNative ( const char *  filename,
const char **  rowNames,
const char **  columnNames,
int  formatType = 0,
int  numberAcross = 2,
double  objSense = 0.0 
) const

Write the problem in MPS format to the specified file.

Row and column names may be null. formatType is

Returns non-zero on I/O error

Reimplemented in OsiCbcSolverInterface, and OsiClpSolverInterface.

virtual void OsiSolverInterface::writeLp ( const char *  filename,
const char *  extension = "lp",
double  epsilon = 1e-5,
int  numberAcross = 10,
int  decimals = 5,
double  objSense = 0.0,
bool  useRowNames = true 
) const [virtual]

Write the problem into an Lp file of the given filename with the specified extension.

Coefficients with value less than epsilon away from an integer value are written as integers. Write at most numberAcross monomials on a line. Write non integer numbers with decimals digits after the decimal point.

The written problem is always a minimization problem. If the current problem is a maximization problem, the intended objective function for the written problem is the current objective function multiplied by -1. If the current problem is a minimization problem, the intended objective function for the written problem is the current objective function. If objSense < 0, the intended objective function is multiplied by -1 before writing the problem. It is left unchanged otherwise.

Write objective function name and constraint names if useRowNames is true. This version calls writeLpNative().

Reimplemented in OsiClpSolverInterface.

virtual void OsiSolverInterface::writeLp ( FILE *  fp,
double  epsilon = 1e-5,
int  numberAcross = 10,
int  decimals = 5,
double  objSense = 0.0,
bool  useRowNames = true 
) const [virtual]

Write the problem into the file pointed to by the parameter fp.

Other parameters are similar to those of writeLp() with first parameter filename.

Reimplemented in OsiClpSolverInterface.

int OsiSolverInterface::writeLpNative ( const char *  filename,
char const *const *const   rowNames,
char const *const *const   columnNames,
const double  epsilon = 1.0e-5,
const int  numberAcross = 10,
const int  decimals = 5,
const double  objSense = 0.0,
const bool  useRowNames = true 
) const

Write the problem into an Lp file.

Parameters are similar to those of writeLp(), but in addition row names and column names may be given.

Parameter rowNames may be NULL, in which case default row names are used. If rowNames is not NULL, it must have exactly one entry per row in the problem and one additional entry (rowNames[getNumRows()] with the objective function name. These getNumRows()+1 entries must be distinct. If this is not the case, default row names are used. In addition, format restrictions are imposed on names (see CoinLpIO::is_invalid_name() for details).

Similar remarks can be made for the parameter columnNames which must either be NULL or have exactly getNumCols() distinct entries.

Write objective function name and constraint names if useRowNames is true.

int OsiSolverInterface::writeLpNative ( FILE *  fp,
char const *const *const   rowNames,
char const *const *const   columnNames,
const double  epsilon = 1.0e-5,
const int  numberAcross = 10,
const int  decimals = 5,
const double  objSense = 0.0,
const bool  useRowNames = true 
) const

Write the problem into the file pointed to by the parameter fp.

Other parameters are similar to those of writeLpNative() with first parameter filename.

virtual int OsiSolverInterface::readLp ( const char *  filename,
const double  epsilon = 1e-5 
) [virtual]

Read file in LP format from file with name filename.

See class CoinLpIO for description of this format.

Reimplemented in OsiClpSolverInterface.

int OsiSolverInterface::readLp ( FILE *  fp,
const double  epsilon = 1e-5 
)

Read file in LP format from the file pointed to by fp.

See class CoinLpIO for description of this format.

virtual void OsiSolverInterface::replaceMatrixOptional ( const CoinPackedMatrix matrix  )  [inline, virtual]

I (JJF) am getting annoyed because I can't just replace a matrix.

The default behavior of this is do nothing so only use where that would not matter e.g. strengthening a matrix for MIP

Reimplemented in OsiClpSolverInterface.

Definition at line 1112 of file OsiSolverInterface.hpp.

virtual void OsiSolverInterface::replaceMatrix ( const CoinPackedMatrix matrix  )  [inline, virtual]

And if it does matter (not used at present).

Reimplemented in OsiClpSolverInterface.

Definition at line 1114 of file OsiSolverInterface.hpp.

void OsiSolverInterface::setApplicationData ( void *  appData  ) 

Set application data.

This is a pointer that the application can store into and retrieve from the solver interface. This field is available for the application to optionally define and use.

void OsiSolverInterface::setAuxiliaryInfo ( OsiAuxInfo auxiliaryInfo  ) 

Create a clone of an Auxiliary Information object.

The base class just stores an application data pointer but can be more general. Application data pointer is designed for one user while this can be extended to cope with more general extensions.

void* OsiSolverInterface::getApplicationData (  )  const

Get application data.

OsiAuxInfo* OsiSolverInterface::getAuxiliaryInfo (  )  const

Get pointer to auxiliary info object.

void OsiSolverInterface::passInMessageHandler ( CoinMessageHandler handler  ) 

Pass in a message handler.

It is the client's responsibility to destroy a message handler installed by this routine; it will not be destroyed when the solver interface is destroyed.

void OsiSolverInterface::newLanguage ( CoinMessages::Language  language  ) 

Set language.

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, and OsiDylpSolverInterface.

Referenced by setLanguage().

void OsiSolverInterface::setLanguage ( CoinMessages::Language  language  )  [inline]

Pass in a message handler.

It is the client's responsibility to destroy a message handler installed by this routine; it will not be destroyed when the solver interface is destroyed.

Reimplemented in OsiCbcSolverInterface, OsiClpSolverInterface, and OsiDylpSolverInterface.

Definition at line 1160 of file OsiSolverInterface.hpp.

References newLanguage().

CoinMessageHandler* OsiSolverInterface::messageHandler (  )  const [inline]

Return a pointer to the current message handler.

Definition at line 1163 of file OsiSolverInterface.hpp.

References handler_.

CoinMessages OsiSolverInterface::messages (  )  [inline]

Return the current set of messages.

Definition at line 1166 of file OsiSolverInterface.hpp.

References messages_.

CoinMessages* OsiSolverInterface::messagesPointer (  )  [inline]

Return a pointer to the current set of messages.

Definition at line 1169 of file OsiSolverInterface.hpp.

References messages_.

virtual void OsiSolverInterface::activateRowCutDebugger ( const char *  modelName  )  [virtual]

Activate the row cut debugger.

If the model name passed is on list of known models then all cuts are checked to see that they do NOT cut off the known optimal solution.

Reimplemented in OsiDylpSolverInterface.

virtual void OsiSolverInterface::activateRowCutDebugger ( const double *  solution  )  [virtual]

Activate debugger using full solution array.

Only integer values need to be correct. Up to user to get it correct. Sets up debugger if solution was valid.

Reimplemented in OsiDylpSolverInterface.

const OsiRowCutDebugger* OsiSolverInterface::getRowCutDebugger (  )  const

Get the row cut debugger.

If there is a row cut debugger object associated with model AND if the known optimal solution is within the current feasible region then a pointer to the object is returned which may be used to test validity of cuts.

Otherwise NULL is returned

const OsiRowCutDebugger* OsiSolverInterface::getRowCutDebuggerAlways (  )  const

If you want to get debugger object even if not on optimal path then use this.

virtual int OsiSolverInterface::canDoSimplexInterface (  )  const [virtual]

Returns 1 if can just do getBInv etc 2 if has all OsiSimplex methods and 0 if it has none.

Reimplemented in OsiClpSolverInterface, and OsiCpxSolverInterface.

virtual void OsiSolverInterface::enableSimplexInterface ( bool  doingPrimal  )  [virtual]

Enables normal operation of subsequent functions.

This method is supposed to ensure that all typical things (like reduced costs, etc.) are updated when individual pivots are executed and can be queried by other methods. says whether will be doing primal or dual

Reimplemented in OsiClpSolverInterface.

virtual void OsiSolverInterface::disableSimplexInterface (  )  [virtual]

Undo whatever setting changes the above method had to make.

Reimplemented in OsiClpSolverInterface, and OsiCpxSolverInterface.

virtual void OsiSolverInterface::enableFactorization (  )  const [virtual]

Tells solver that calls to getBInv etc are about to take place.

Underlying code may need mutable as this may be called from CglCut:;generateCuts which is const. If that is too horrific then each solver e.g. BCP or CBC will have to do something outside main loop.

Reimplemented in OsiClpSolverInterface, and OsiCpxSolverInterface.

virtual void OsiSolverInterface::disableFactorization (  )  const [virtual]

and stop

Reimplemented in OsiClpSolverInterface, and OsiCpxSolverInterface.

virtual bool OsiSolverInterface::basisIsAvailable (  )  const [virtual]

Returns true if a basis is available AND problem is optimal.

This should be used to see if the BInvARow type operations are possible and meaningful.

Reimplemented in OsiClpSolverInterface, and OsiCpxSolverInterface.

Referenced by optimalBasisIsAvailable().

bool OsiSolverInterface::optimalBasisIsAvailable (  )  const [inline]

Synonym for basisIsAvailable!

Definition at line 1247 of file OsiSolverInterface.hpp.

References basisIsAvailable().

virtual void OsiSolverInterface::getBasisStatus ( int *  cstat,
int *  rstat 
) const [virtual]

The following two methods may be replaced by the methods of OsiSolverInterface using OsiWarmStartBasis if: 1.

OsiWarmStartBasis resize operation is implemented more efficiently and 2. It is ensured that effects on the solver are the same

Returns a basis status of the structural/artificial variables At present as warm start i.e 0 free, 1 basic, 2 upper, 3 lower

NOTE artificials are treated as +1 elements so for <= rhs artificial will be at lower bound if constraint is tight

Reimplemented in OsiClpSolverInterface, and OsiCpxSolverInterface.

virtual int OsiSolverInterface::setBasisStatus ( const int *  cstat,
const int *  rstat 
) [virtual]

Set the status of structural/artificial variables and factorize, update solution etc.

NOTE artificials are treated as +1 elements so for <= rhs artificial will be at lower bound if constraint is tight

Reimplemented in OsiClpSolverInterface.

virtual int OsiSolverInterface::pivot ( int  colIn,
int  colOut,
int  outStatus 
) [virtual]

Perform a pivot by substituting a colIn for colOut in the basis.

The status of the leaving variable is given in outStatus. Where 1 is to upper bound, -1 to lower bound Return code was undefined - now for OsiClp is 0 for okay, 1 if inaccuracy forced re-factorization (should be okay) and -1 for singular factorization

Reimplemented in OsiClpSolverInterface.

virtual int OsiSolverInterface::primalPivotResult ( int  colIn,
int  sign,
int &  colOut,
int &  outStatus,
double &  t,
CoinPackedVector dx 
) [virtual]

Obtain a result of the primal pivot Outputs: colOut -- leaving column, outStatus -- its status, t -- step size, and, if dx!=NULL, *dx -- primal ray direction.

Inputs: colIn -- entering column, sign -- direction of its change (+/-1). Both for colIn and colOut, artificial variables are index by the negative of the row index minus 1. Return code (for now): 0 -- leaving variable found, -1 -- everything else? Clearly, more informative set of return values is required Primal and dual solutions are updated

Reimplemented in OsiClpSolverInterface.

virtual int OsiSolverInterface::dualPivotResult ( int &  colIn,
int &  sign,
int  colOut,
int  outStatus,
double &  t,
CoinPackedVector dx 
) [virtual]

Obtain a result of the dual pivot (similar to the previous method) Differences: entering variable and a sign of its change are now the outputs, the leaving variable and its statuts -- the inputs If dx!=NULL, then *dx contains dual ray Return code: same.

Reimplemented in OsiClpSolverInterface.

virtual void OsiSolverInterface::getReducedGradient ( double *  columnReducedCosts,
double *  duals,
const double *  c 
) [virtual]

Get the reduced gradient for the cost vector c.

Reimplemented in OsiClpSolverInterface.

virtual void OsiSolverInterface::setObjectiveAndRefresh ( double *  c  )  [virtual]

Set a new objective and apply the old basis so that the reduced costs are properly updated.

Reimplemented in OsiClpSolverInterface.

virtual void OsiSolverInterface::getBInvARow ( int  row,
double *  z,
double *  slack = NULL 
) const [virtual]

Get a row of the tableau (slack part in slack if not NULL).

Reimplemented in OsiClpSolverInterface, and OsiCpxSolverInterface.

virtual void OsiSolverInterface::getBInvRow ( int  row,
double *  z 
) const [virtual]

Get a row of the basis inverse.

Reimplemented in OsiClpSolverInterface, and OsiCpxSolverInterface.

virtual void OsiSolverInterface::getBInvACol ( int  col,
double *  vec 
) const [virtual]

Get a column of the tableau.

Reimplemented in OsiClpSolverInterface, and OsiCpxSolverInterface.

virtual void OsiSolverInterface::getBInvCol ( int  col,
double *  vec 
) const [virtual]

Get a column of the basis inverse.

Reimplemented in OsiClpSolverInterface, and OsiCpxSolverInterface.

virtual void OsiSolverInterface::getBasics ( int *  index  )  const [virtual]

Get basic indices (order of indices corresponds to the order of elements in a vector retured by getBInvACol() and getBInvCol()).

Reimplemented in OsiClpSolverInterface, and OsiCpxSolverInterface.

virtual OsiSolverInterface* OsiSolverInterface::clone ( bool  copyData = true  )  const [pure virtual]

Clone.

The result of calling clone(false) is defined to be equivalent to calling the default constructor OsiSolverInterface().

Implemented in CbcSolver2, CbcSolver3, CbcSolverLongThin, ClpQuadInterface, OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

OsiSolverInterface& OsiSolverInterface::operator= ( const OsiSolverInterface rhs  ) 

Assignment operator.

virtual void OsiSolverInterface::reset (  )  [virtual]

Reset the solver interface.

A call to reset() returns the solver interface to the same state as it would have if it had just been constructed by calling the default constructor OsiSolverInterface().

Reimplemented in OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiOslSolverInterface, and OsiSymSolverInterface.

virtual void OsiSolverInterface::applyRowCut ( const OsiRowCut rc  )  [protected, pure virtual]

Apply a row cut (append to the constraint matrix).

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

virtual void OsiSolverInterface::applyColCut ( const OsiColCut cc  )  [protected, pure virtual]

Apply a column cut (adjust the bounds of one or more variables).

Implemented in OsiCbcSolverInterface, OsiClpSolverInterface, OsiCpxSolverInterface, OsiDylpSolverInterface, OsiFmpSolverInterface, OsiGlpkSolverInterface, OsiMskSolverInterface, OsiOslSolverInterface, OsiSpxSolverInterface, OsiSymSolverInterface, OsiVolSolverInterface, and OsiXprSolverInterface.

void OsiSolverInterface::convertBoundToSense ( const double  lower,
const double  upper,
char &  sense,
double &  right,
double &  range 
) const [inline, protected]

A quick inlined function to convert from the lb/ub style of constraint definition to the sense/rhs/range style.

Definition at line 1470 of file OsiSolverInterface.hpp.

References getInfinity().

Referenced by OsiVolSolverInterface::setRowBounds(), OsiVolSolverInterface::setRowLower(), and OsiVolSolverInterface::setRowUpper().

void OsiSolverInterface::convertSenseToBound ( const char  sense,
const double  right,
const double  range,
double &  lower,
double &  upper 
) const [inline, protected]

A quick inlined function to convert from the sense/rhs/range style of constraint definition to the lb/ub style.

Definition at line 1504 of file OsiSolverInterface.hpp.

References getInfinity().

Referenced by OsiVolSolverInterface::setRowType().

template<class T>
T OsiSolverInterface::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.

Definition at line 1391 of file OsiSolverInterface.hpp.

void OsiSolverInterface::setInitialData (  )  [protected]

Set OsiSolverInterface object state for default constructor.

This routine establishes the initial values of data fields in the OsiSolverInterface object when the object is created using the default constructor.

Reimplemented in OsiSymSolverInterface.


Friends And Related Function Documentation

void OsiSolverInterfaceCommonUnitTest ( const OsiSolverInterface emptySi,
const std::string &  mpsDir,
const std::string &  netlibDir 
) [friend]

A function that tests the methods in the OsiSolverInterface class.

The only reason for it not to be a member method is that this way it doesn't have to be compiled into the library. And that's a gain, because the library should be compiled with optimization on, but this method should be compiled with debugging. Also, if this method is compiled with optimization, the compilation takes 10-15 minutes and the machine pages (has 256M core memory!)...

void OsiSolverInterfaceMpsUnitTest ( const std::vector< OsiSolverInterface * > &  vecSiP,
const std::string &  mpsDir 
) [friend]

A function that tests that a lot of problems given in MPS files (mostly the NETLIB problems) solve properly with all the specified solvers.


Member Data Documentation

OsiRowCutDebugger* OsiSolverInterface::rowCutDebugger_ [protected]

Pointer to row cut debugger object.

Definition at line 1406 of file OsiSolverInterface.hpp.

OsiAuxInfo* OsiSolverInterface::appDataEtc_ [private]

Pointer to user-defined data structure - and more if user wants.

Definition at line 1415 of file OsiSolverInterface.hpp.

int OsiSolverInterface::intParam_[OsiLastIntParam] [private]

Array of integer parameters.

Definition at line 1417 of file OsiSolverInterface.hpp.

Referenced by getIntParam(), and setIntParam().

double OsiSolverInterface::dblParam_[OsiLastDblParam] [private]

Array of double parameters.

Definition at line 1419 of file OsiSolverInterface.hpp.

Referenced by getDblParam(), and setDblParam().

std::string OsiSolverInterface::strParam_[OsiLastStrParam] [private]

Array of string parameters.

Definition at line 1421 of file OsiSolverInterface.hpp.

Referenced by getStrParam(), and setStrParam().

bool OsiSolverInterface::hintParam_[OsiLastHintParam] [private]

Array of hint parameters.

Definition at line 1423 of file OsiSolverInterface.hpp.

Referenced by getHintParam(), and setHintParam().

OsiHintStrength OsiSolverInterface::hintStrength_[OsiLastHintParam] [private]

Array of hint strengths.

Definition at line 1425 of file OsiSolverInterface.hpp.

Referenced by getHintParam(), and setHintParam().

CoinWarmStart* OsiSolverInterface::ws_ [private]

Warm start information used for hot starts when the default hot start implementation is used.

Reimplemented in OsiClpSolverInterface, OsiFmpSolverInterface, and OsiOslSolverInterface.

Definition at line 1428 of file OsiSolverInterface.hpp.

CoinMessageHandler* OsiSolverInterface::handler_ [protected]

Message handler.

Definition at line 1432 of file OsiSolverInterface.hpp.

Referenced by messageHandler().

bool OsiSolverInterface::defaultHandler_ [protected]

Flag to say if the currrent handler is the default handler.

Indicates if the solver interface object is responsible for destruction of the handler (true) or if the client is responsible (false).

Definition at line 1438 of file OsiSolverInterface.hpp.

CoinMessages OsiSolverInterface::messages_ [protected]

Messages.

Definition at line 1440 of file OsiSolverInterface.hpp.

Referenced by messages(), and messagesPointer().


The documentation for this class was generated from the following file:
Generated on Thu May 15 22:00:46 2008 by  doxygen 1.4.7