My Project
OSDefaultSolver.cpp
Go to the documentation of this file.
1/* $Id: OSDefaultSolver.cpp 4943 2015-02-04 19:10:42Z Gassmann $ */
14
15#include "OSOutput.h"
16#include "OSErrorClass.h"
17#include "OSDefaultSolver.h"
18
19#include<iostream>
20
21using std::endl;
22
24 osil(""),
25 osol(""),
26 osrl(""),
27 osinstance( NULL),
28 osoption( NULL),
29 osresult( NULL),
30 sSolverName(""),
32 bSetSolverOptions( false)
33
34{
35
36
37}
38
40{
41#ifndef NDEBUG
42 osoutput->OSPrint(ENUM_OUTPUT_AREA_OSSolverInterfaces, ENUM_OUTPUT_LEVEL_debug, "Default Solver destructor called");
43#endif
44 /* we do not delete osinstance since it is not newed in any
45 * of the solvers, it is newed elesewhere and deleted elsewhere
46 */
47 //if(osinstance != NULL) delete osinstance;
48 //osinstance = NULL;
49 //if(osresult != NULL) delete osresult;
50 //osresult = NULL;
51}
52
const OSSmartPtr< OSOutput > osoutput
Definition OSOutput.cpp:39
std::string sSolverName
sSolverName is the name of the Coin solver used, e.g.
std::string osol
osol holds the options for the solver
bool bSetSolverOptions
bSetSolverOptions is set to true if setSolverOptions has been called, false otherwise
virtual ~DefaultSolver()=0
default destructor.
DefaultSolver()
default constructor.
std::string osrl
osrl holds the solution or result of the model
OSInstance * osinstance
osinstance holds the problem instance in-memory as an OSInstance object
bool bCallbuildSolverInstance
bCallbuildSolverInstance is set to true if buildSolverService has been called
std::string osil
osil holds the problem instance as a std::string
OSOption * osoption
osoption holds the solver options in-memory as an OSOption object
OSResult * osresult
osresult holds the solution or result of the model in-memory as an OSResult object
@ ENUM_OUTPUT_LEVEL_debug
@ ENUM_OUTPUT_AREA_OSSolverInterfaces