/home/coin/SVN-release/OS-2.4.2/OS/src/OSSolverInterfaces/OSMatlabSolver.h

Go to the documentation of this file.
00001 /* $Id: OSMatlabSolver.h 4292 2011-09-21 05:47:18Z kmartin $ */
00015 #ifndef OSMATLAB_H
00016 #define OSMATLAB_H
00017 //
00018 //OS headers
00019 #include "OSCoinSolver.h"
00020 #include "OSResult.h"
00021 #include "OSiLReader.h"
00022 #include "OSiLWriter.h"
00023 #include "OSInstance.h"
00024 #include "OSDefaultSolver.h"
00025 #include "OSDataStructures.h"
00026 #include "OSSolverAgent.h"
00027 #include "OSErrorClass.h"
00028 
00029 //end OS headers
00030 
00031 #include <string>
00032 
00049 class OSMatlab
00050 {
00051 
00052 public:
00053 
00055     OSMatlab();
00056 
00058     ~OSMatlab() ;
00059 
00063     SparseMatrix *sparseMat;
00064 
00068     double *bl;
00069 
00073     double *bu;
00074 
00078     double *obj;
00079 
00083     double *vl;
00084 
00088     double *vu;
00089 
00093     int numVar;
00094 
00098     int numCon;
00099 
00103     char *varType;
00104 
00108     bool objType;
00109 
00111     int numQTerms;
00112 
00116     int *qRows;
00117 
00121     int *qIndex1;
00122 
00126     int *qIndex2;
00127 
00131     double *qVal;
00132 
00136     DefaultSolver *solverType;
00137 
00139     std::string instanceName;
00140 
00142     std::string sSolverName;
00143 
00145     std::string sAgentAddress;
00146 
00152     std::string solve();
00153 
00157     void createOSInstance();
00158 
00163     OSInstance *osinstance;
00164 
00168     std::string osil;
00169 
00170 };//OSMatlabclass
00171 
00172 #endif

Generated on Wed Nov 30 03:04:24 2011 by  doxygen 1.4.7