Scheduler
glpkImplementation.h
Go to the documentation of this file.
1 
10 #ifndef GLPKIMPLEMENTATION_H
11 #define GLPKIMPLEMENTATION_H
12 
13 #include "lpImplementation.h"
14 
15 class glp_prob;
16 
17 namespace Mdp
18 {
19 
20 
22 {
23 public:
24  GlpkImplementation(LpImplementation::LpAlgo algo) : algorithm(algo){};
26 
27  double solve(std::vector<double>& variables,
28  std::vector<double> coeffs,
29  std::vector<std::vector<double>> eqCoeffs,
30  std::vector<double> eqValue,
31  std::vector<std::vector<double>> ineqCoeffs,
32  std::vector<double> ineqValue);
33 private:
34  LpImplementation::LpAlgo algorithm;
35  double simplexSolve(glp_prob *lp, std::vector<double>& variables);
36  double interiorPointSolve(glp_prob *lp, std::vector<double>& variables);
37 };
38 
39 
40 }
41 #endif
double solve(std::vector< double > &variables, std::vector< double > coeffs, std::vector< std::vector< double >> eqCoeffs, std::vector< double > eqValue, std::vector< std::vector< double >> ineqCoeffs, std::vector< double > ineqValue)
Definition: action.h:18
GlpkImplementation(LpImplementation::LpAlgo algo)