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