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
bool objType
objType indicates whether or not we have a max (1) or a min (0)
double * qVal
qVal is a pointer to the coefficient value of each of the quadratic terms.
double * vl
vl is a pointer to the lower bounds on the varialbes
OSInstance * osinstance
osinstance is a pointer to an OSInstance object that gets created from the MATLAB data structures ...
void createOSInstance()
Create an OSInstance.
SparseMatrix * sparseMat
sparseMat is a pointer to an OS Sprase Matrix data structure
double * vu
vu is a pointer to the upper bounds on the variables
int numCon
numCon is the number of constraints in the problem
std::string sAgentAddress
is the address of the solver service
int * qIndex2
qIndex2 is a pointer to the index of the second variable in each of the quadratic terms ...
double * bl
bl is a pointer to the lower bounds on the constraints
std::string sSolverName
sSolverName is the name of the solver
a sparse matrix data structure
Definition: OSGeneral.h:223
int numQTerms
numQTerms is the number of quadratic terms
The Default Solver Class.
std::string solve()
Solve the problem instance.
int * qIndex1
qIndex1 is a pointer to the index of the first variable in each of the quadratic terms ...
int numVar
numVar is the number of variables in the problem
int * qRows
qRows is a pointer to the row index of each quadratic term
OSMatlab()
the OSMatlab class constructor
std::string instanceName
instanceName is the name of the problem instance
DefaultSolver * solverType
solverType is the a pointer to the sovler that will be requested
char * varType
varType is a pointer to the variable type eg C, B, I
std::string osil
is the osil instance that gets created from the MATLAB data structures
The OSMatlab Class.
The in-memory representation of an OSiL instance..
Definition: OSInstance.h:2262
double * bu
bu is a pointer to the upper bounds on the constraints
~OSMatlab()
the OSMatlab class destructor
double * obj
obj is a pointer to the objective function coefficients