BlockIPPlatform
 All Classes Files Functions Variables
OsiClp.h
Go to the documentation of this file.
1 
6 #ifndef OSI_CLP_H
7 #define OSI_CLP_H
8 #ifdef CLP_
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 #include "OsiSolver.h"
22 #include "ClpModel.hpp"
23 
25 class EXPDLL OsiClp : public OsiSolver {
26  private:
27  ClpSimplex* Clp;
28  double consumedTime;
29 
30  public:
31  // Constructor
32  OsiClp();
33 
34  // Destructor
35  ~OsiClp();
36 
37  // Solve the problem loaded with Clp
38  STATUS solve();
39 
40  // Load a problem from a mps file
41  void readMps(const char *filename);
42 
43  private:
44  // Load the quadratic objective function cost
45  void loadQuadraticObj(double qobj[]);
46 };
47 
48 #endif //CLP_
49 #endif //OSI_CLP_H