OS  2.10.1
OSDefaultSolver.h
Go to the documentation of this file.
1 /* $Id: OSDefaultSolver.h 4562 2013-01-02 12:31:12Z Gassmann $ */
17 #ifndef DEFAULTSOLVER
18 #define DEFAULTSOLVER
19 
20 
21 #include "OSInstance.h"
22 #include "OSResult.h"
23 #include "OSOption.h"
24 
25 #include <string>
26 
36 {
37 
38 public:
39 
40 
41 
43  std::string osil;
44 
46  std::string osol;
47 
48 
50  std::string osrl;
51 
52 
55 
56 
59 
62 
63 
64 
68  std::string sSolverName;
69 
70 
76 
77 
83 
84 
88  virtual void solve() = 0 ;
89 
94  virtual void buildSolverInstance() = 0 ;
95 
100  virtual void setSolverOptions() = 0 ;
101 
105  DefaultSolver();
106 
110  virtual ~DefaultSolver() = 0;
111 
112 
113 
114 
115 
116 
117 
118 };
119 
120 
121 #endif
virtual void solve()=0
solve is a virtual function – the actual solvers will implement their own solve method ...
std::string osrl
osrl holds the solution or result of the model
bool bCallbuildSolverInstance
bCallbuildSolverInstance is set to true if buildSolverService has been called
std::string sSolverName
sSolverName is the name of the Coin solver used, e.g.
The Option Class.
Definition: OSOption.h:3564
OSInstance * osinstance
osinstance holds the problem instance in-memory as an OSInstance object
DefaultSolver()
default constructor.
OSOption * osoption
osoption holds the solver options in-memory as an OSOption object
std::string osol
osol holds the options for the solver
virtual void setSolverOptions()=0
setSolverOptions is a virtual function – the actual solvers will implement their own setSolverOptio...
The in-memory representation of an OSiL instance.
Definition: OSInstance.h:2262
OSResult * osresult
osresult holds the solution or result of the model in-memory as an OSResult object ...
bool bSetSolverOptions
bSetSolverOptions is set to true if setSolverOptions has been called, false otherwise ...
This file defines the OSInstance class along with its supporting classes.
virtual ~DefaultSolver()=0
default destructor.
virtual void buildSolverInstance()=0
buildSolverInstance is a virtual function – the actual solvers will implement their own buildSolver...
The Default Solver Class.
std::string osil
osil holds the problem instance as a std::string
The Result Class.
Definition: OSResult.h:2548