BlockIPPlatform
 All Classes Files Functions Variables
OsiGlpk.h
Go to the documentation of this file.
1 
6 #ifndef OSI_GLPK_H
7 #define OSI_GLPK_H
8 #ifdef GLPK_
9 
10 #ifndef EXPDLL
11 #ifdef WIN32
12 #ifdef OSI_INTERFACE_EXPORTS
13 #define EXPDLL __declspec(dllexport)
14 #else
15 #define EXPDLL __declspec(dllimport)
16 #endif //OSI_INTERFACE_EXPORTS
17 #else
18 #define EXPDLL
19 #endif //WIN32
20 #endif //EXPDLL
21 
22 #include "OsiSolver.h"
23 #include "glpk.h"
24 
26 class EXPDLL OsiGlpk : public OsiSolver {
27  private:
28  glp_prob* Glp;
29  glp_iocp params;
30 
31  public:
32  // Constructor
33  OsiGlpk();
34 
35  // Destructor
36  ~OsiGlpk();
37 
38  // Solve the problem loaded with Glpk
39  STATUS solve();
40 };
41 
42 #endif //GLPK_
43 #endif //OSI_GLPK_H