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