Implements a solve method for the Coin solvers. More...
#include <OSCoinSolver.h>
Public Member Functions | |
CoinSolver () | |
The class constructor. More... | |
~CoinSolver () | |
The class destructor. More... | |
virtual void | solve () throw (ErrorClass) |
The implementation of the corresponding virtual function. More... | |
virtual void | buildSolverInstance () throw (ErrorClass) |
The implementation of the corresponding virtual function. More... | |
virtual void | setSolverOptions () throw (ErrorClass) |
The implementation of the corresponding virtual function. More... | |
bool | setCoinPackedMatrix () |
Create a CoinPackedMatrix. More... | |
std::string | getCoinSolverType (std::string osol_) |
Get the solver type, e.g. clp or glpk. More... | |
void | dataEchoCheck () |
Print out problem parameters. More... | |
void | writeResult (OsiSolverInterface *solver) |
void | writeResult (CbcModel *model) |
![]() | |
DefaultSolver () | |
default constructor. More... | |
virtual | ~DefaultSolver ()=0 |
default destructor. More... | |
Public Attributes | |
OsiSolverInterface * | osiSolver |
osiSolver is the osi solver object – in this case clp, glpk, cbc, cplex, symphony or dylp More... | |
OSiLReader * | m_osilreader |
m_osilreader is an OSiLReader object used to create an osinstance from an osil string if needed More... | |
OSoLReader * | m_osolreader |
m_osolreader is an OSoLReader object used to create an osoption from an osol string if needed More... | |
![]() | |
std::string | osil |
osil holds the problem instance as a std::string More... | |
std::string | osol |
osol holds the options for the solver More... | |
std::string | osrl |
osrl holds the solution or result of the model More... | |
OSInstance * | osinstance |
osinstance holds the problem instance in-memory as an OSInstance object More... | |
OSOption * | osoption |
osoption holds the solver options in-memory as an OSOption object More... | |
OSResult * | osresult |
osresult holds the solution or result of the model in-memory as an OSResult object More... | |
std::string | sSolverName |
sSolverName is the name of the Coin solver used, e.g. More... | |
bool | bCallbuildSolverInstance |
bCallbuildSolverInstance is set to true if buildSolverService has been called More... | |
bool | bSetSolverOptions |
bSetSolverOptions is set to true if setSolverOptions has been called, false otherwise More... | |
Private Attributes | |
CoinPackedMatrix * | m_CoinPackedMatrix |
m_CoinPackedMatrix is a Coin Packed Matrix ojbect More... | |
OSrLWriter * | osrlwriter |
osrlwriter object used to write osrl from an OSResult object More... | |
const char ** | cbc_argv |
when Cbc is the solver, these are the arguments sent to Cbc Solve More... | |
int | num_cbc_argv |
the number of arguments in the argument list to the Cbc Solver More... | |
double | cpuTime |
Implements a solve method for the Coin solvers.
This class implements a solve method for the Coin solvers It reads an OSInstance object and puts into the Coin OSI format
Definition at line 37 of file OSCoinSolver.h.
CoinSolver::CoinSolver | ( | ) |
The class constructor.
Definition at line 96 of file OSCoinSolver.cpp.
CoinSolver::~CoinSolver | ( | ) |
The class destructor.
Definition at line 108 of file OSCoinSolver.cpp.
|
virtual |
The implementation of the corresponding virtual function.
Implements DefaultSolver.
Definition at line 1100 of file OSCoinSolver.cpp.
|
virtual |
The implementation of the corresponding virtual function.
Implements DefaultSolver.
Definition at line 145 of file OSCoinSolver.cpp.
|
virtual |
The implementation of the corresponding virtual function.
In this first pass through the options just see if the hintStrength was set
If the hintStrength was set, use it when processing the other options
Implements DefaultSolver.
Definition at line 464 of file OSCoinSolver.cpp.
bool CoinSolver::setCoinPackedMatrix | ( | ) |
Create a CoinPackedMatrix.
Definition at line 1053 of file OSCoinSolver.cpp.
std::string CoinSolver::getCoinSolverType | ( | std::string | osol_ | ) |
Get the solver type, e.g. clp or glpk.
a | string that is an instance of OSoL |
Definition at line 1267 of file OSCoinSolver.cpp.
void CoinSolver::dataEchoCheck | ( | ) |
void CoinSolver::writeResult | ( | OsiSolverInterface * | solver | ) |
Definition at line 1358 of file OSCoinSolver.cpp.
void CoinSolver::writeResult | ( | CbcModel * | model | ) |
Definition at line 1841 of file OSCoinSolver.cpp.
OsiSolverInterface* CoinSolver::osiSolver |
osiSolver is the osi solver object – in this case clp, glpk, cbc, cplex, symphony or dylp
Definition at line 93 of file OSCoinSolver.h.
OSiLReader* CoinSolver::m_osilreader |
m_osilreader is an OSiLReader object used to create an osinstance from an osil string if needed
Definition at line 101 of file OSCoinSolver.h.
OSoLReader* CoinSolver::m_osolreader |
m_osolreader is an OSoLReader object used to create an osoption from an osol string if needed
Definition at line 107 of file OSCoinSolver.h.
|
private |
m_CoinPackedMatrix is a Coin Packed Matrix ojbect
Definition at line 126 of file OSCoinSolver.h.
|
private |
osrlwriter object used to write osrl from an OSResult object
Definition at line 129 of file OSCoinSolver.h.
|
private |
when Cbc is the solver, these are the arguments sent to Cbc Solve
Definition at line 134 of file OSCoinSolver.h.
|
private |
the number of arguments in the argument list to the Cbc Solver
Definition at line 138 of file OSCoinSolver.h.
|
private |
Definition at line 140 of file OSCoinSolver.h.