00001 00016 #ifndef OSMATLAB_H 00017 #define OSMATLAB_H 00018 // 00019 //OS headers 00020 #include "OSResult.h" 00021 #include "OSiLReader.h" 00022 #include "OSiLWriter.h" 00023 #include "OSInstance.h" 00024 #include "DefaultSolver.h" 00025 #include "OSDataStructures.h" 00026 #include "OSSolverAgent.h" 00027 #include "ErrorClass.h" 00028 00029 //#ifdef COIN_HAS_LINDO 00030 //#include "LindoSolver.h" 00031 //#endif 00032 //end OS headers 00033 00034 #include <string> 00035 00052 class OSMatlab { 00053 00054 public: 00055 00057 OSMatlab(); 00058 00060 ~OSMatlab() ; 00061 00065 SparseMatrix *sparseMat; 00066 00070 double *bl; 00071 00075 double *bu; 00076 00080 double *obj; 00081 00085 double *vl; 00086 00090 double *vu; 00091 00095 int numVar; 00096 00100 int numCon; 00101 00105 char *varType; 00106 00110 bool objType; 00111 00113 int numQTerms; 00114 00118 int *qRows; 00119 00123 int *qIndex1; 00124 00128 int *qIndex2; 00129 00133 double *qVal; 00134 00138 DefaultSolver *solverType; 00139 00141 std::string instanceName; 00142 00144 std::string sSolverName; 00145 00147 std::string sAgentAddress; 00148 00154 std::string solve(); 00155 00159 void createOSInstance(); 00160 00165 OSInstance *osinstance; 00166 00170 std::string osil; 00171 00172 };//OSMatlabclass 00173 00174 #endif