OS  2.10.2
OSMatlabSolver.h
Go to the documentation of this file.
1 /* $Id: OSMatlabSolver.h 4562 2013-01-02 12:31:12Z Gassmann $ */
15 #ifndef OSMATLAB_H
16 #define OSMATLAB_H
17 //
18 //OS headers
19 #include "OSCoinSolver.h"
20 #include "OSResult.h"
21 #include "OSiLReader.h"
22 #include "OSiLWriter.h"
23 #include "OSInstance.h"
24 #include "OSDefaultSolver.h"
25 #include "OSDataStructures.h"
26 #include "OSSolverAgent.h"
27 #include "OSErrorClass.h"
28 
29 //end OS headers
30 
31 #include <string>
32 
49 class OSMatlab
50 {
51 
52 public:
53 
55  OSMatlab();
56 
58  ~OSMatlab() ;
59 
64 
68  double *bl;
69 
73  double *bu;
74 
78  double *obj;
79 
83  double *vl;
84 
88  double *vu;
89 
93  int numVar;
94 
98  int numCon;
99 
103  char *varType;
104 
108  bool objType;
109 
112 
116  int *qRows;
117 
121  int *qIndex1;
122 
126  int *qIndex2;
127 
131  double *qVal;
132 
137 
139  std::string instanceName;
140 
142  std::string sSolverName;
143 
145  std::string sAgentAddress;
146 
152  std::string solve();
153 
157  void createOSInstance();
158 
164 
168  std::string osil;
169 
170 };//OSMatlabclass
171 
172 #endif
OSMatlab::bl
double * bl
bl is a pointer to the lower bounds on the constraints
Definition: OSMatlabSolver.h:68
OSDataStructures.h
OSMatlab::numVar
int numVar
numVar is the number of variables in the problem
Definition: OSMatlabSolver.h:93
OSMatlab::solve
std::string solve()
Solve the problem instance.
OSErrorClass.h
OSMatlab::createOSInstance
void createOSInstance()
Create an OSInstance.
OSMatlab::solverType
DefaultSolver * solverType
solverType is the a pointer to the sovler that will be requested
Definition: OSMatlabSolver.h:136
OSInstance
The in-memory representation of an OSiL instance..
Definition: OSInstance.h:2262
OSMatlab::varType
char * varType
varType is a pointer to the variable type eg C, B, I
Definition: OSMatlabSolver.h:103
OSMatlab::osinstance
OSInstance * osinstance
osinstance is a pointer to an OSInstance object that gets created from the MATLAB data structures
Definition: OSMatlabSolver.h:163
OSMatlab::vl
double * vl
vl is a pointer to the lower bounds on the varialbes
Definition: OSMatlabSolver.h:83
SparseMatrix
a sparse matrix data structure
Definition: OSGeneral.h:223
OSMatlab::qIndex1
int * qIndex1
qIndex1 is a pointer to the index of the first variable in each of the quadratic terms
Definition: OSMatlabSolver.h:121
OSResult.h
OSInstance.h
This file defines the OSInstance class along with its supporting classes.
OSiLWriter.h
OSMatlab::sparseMat
SparseMatrix * sparseMat
sparseMat is a pointer to an OS Sprase Matrix data structure
Definition: OSMatlabSolver.h:63
OSiLReader.h
OSMatlab::qVal
double * qVal
qVal is a pointer to the coefficient value of each of the quadratic terms.
Definition: OSMatlabSolver.h:131
OSMatlab::OSMatlab
OSMatlab()
the OSMatlab class constructor
OSMatlab::vu
double * vu
vu is a pointer to the upper bounds on the variables
Definition: OSMatlabSolver.h:88
OSDefaultSolver.h
OSMatlab::~OSMatlab
~OSMatlab()
the OSMatlab class destructor
OSMatlab::instanceName
std::string instanceName
instanceName is the name of the problem instance
Definition: OSMatlabSolver.h:139
OSMatlab::osil
std::string osil
is the osil instance that gets created from the MATLAB data structures
Definition: OSMatlabSolver.h:168
OSMatlab::sSolverName
std::string sSolverName
sSolverName is the name of the solver
Definition: OSMatlabSolver.h:142
OSCoinSolver.h
OSMatlab::objType
bool objType
objType indicates whether or not we have a max (1) or a min (0)
Definition: OSMatlabSolver.h:108
OSMatlab
The OSMatlab Class.
Definition: OSMatlabSolver.h:49
OSMatlab::qRows
int * qRows
qRows is a pointer to the row index of each quadratic term
Definition: OSMatlabSolver.h:116
OSMatlab::numCon
int numCon
numCon is the number of constraints in the problem
Definition: OSMatlabSolver.h:98
OSMatlab::numQTerms
int numQTerms
numQTerms is the number of quadratic terms
Definition: OSMatlabSolver.h:111
OSMatlab::sAgentAddress
std::string sAgentAddress
is the address of the solver service
Definition: OSMatlabSolver.h:145
OSMatlab::qIndex2
int * qIndex2
qIndex2 is a pointer to the index of the second variable in each of the quadratic terms
Definition: OSMatlabSolver.h:126
OSSolverAgent.h
DefaultSolver
The Default Solver Class.
Definition: OSDefaultSolver.h:35
OSMatlab::bu
double * bu
bu is a pointer to the upper bounds on the constraints
Definition: OSMatlabSolver.h:73
OSMatlab::obj
double * obj
obj is a pointer to the objective function coefficients
Definition: OSMatlabSolver.h:78