graph_analysis
GLPKSolver.hpp
Go to the documentation of this file.
1 #ifndef GRAPH_ANALYSIS_ALGORITHMS_LP_GLPK_SOLVER_HPP
2 #define GRAPH_ANALYSIS_ALGORITHMS_LP_GLPK_SOLVER_HPP
3 
4 #include <string>
5 #include <stdexcept>
6 #include "CommandlineSolver.hpp"
7 
8 namespace graph_analysis {
9 namespace algorithms {
10 namespace lp {
11 
16 {
17 public:
18  GLPKSolver();
19  virtual ~GLPKSolver();
20 
21  LPSolver::Type getSolverType() const override { return GLPK_SOLVER; }
22 
23  virtual std::string createSolverCommand() const;
24 
25  virtual Solution readBasicSolution(const std::string& filename);
26 };
27 
28 } // end namespace lp
29 } // end namespace algorithms
30 } // end namespace graph_analysis
31 #endif // GRAPH_ANALYSIS_ALGORITHMS_LP_GLPK_SOLVER_HPP
GLPKSolver()
Definition: GLPKSolver.cpp:14
virtual ~GLPKSolver()
Definition: GLPKSolver.cpp:18
Definition: Solution.hpp:15
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
LPSolver::Type getSolverType() const override
Definition: GLPKSolver.hpp:21
Definition: GLPKSolver.hpp:15
virtual std::string createSolverCommand() const
Definition: GLPKSolver.cpp:22
virtual Solution readBasicSolution(const std::string &filename)
Definition: GLPKSolver.cpp:31
Type
Definition: LPSolver.hpp:28