#include <GLPKSolver.hpp>
|
| enum | Status {
STATUS_UNKNOWN,
STATUS_OPTIMAL,
STATUS_INFEASIBLE,
STATUS_UNBOUNDED,
INVALID_PROBLEM_DEFINITION,
NO_SOLUTION_FOUND,
SOLUTION_FOUND
} |
| |
| enum | Type {
UNKNOWN_LP_SOLVER,
CBC_SOLVER,
CLP_SOLVER,
GLPK_SOLVER,
SCIP_SOLVER,
SOPLEX_SOLVER,
GLPK_SOLVER_EMBEDDED,
SCIP_SOLVER_EMBEDDED,
SOPLEX_SOLVER_EMBEDDED,
LP_SOLVER_TYPE_END
} |
| |
| enum | ProblemFormat {
UNKNOWN_PROBLEM_FORMAT = 0,
CPLEX,
GLPK,
MPS,
LP_PROBLEM_FORMAT_END
} |
| |
| enum | SolutionType {
UNKNOWN_SOLUTION_TYPE = 0,
BASIC_SOLUTION,
IPT_SOLUTION,
MIP_SOLUTION,
LP_SOLUTION_TYPE_END
} |
| | Solution types: basic, IPT = interior point, MIP = mixed integer. More...
|
| |
| typedef shared_ptr< LPSolver > | Ptr |
| |
| static std::map< Status, std::string > | StatusTxt |
| |
| static std::map< Type, std::string > | TypeTxt |
| |
| static std::map< ProblemFormat, std::string > | ProblemFormatTxt |
| |
| static std::map< LPSolver::ProblemFormat, std::vector< std::string > > | ProblemFormatExtensions |
| |
| typedef std::map< std::string, KnownSolution > | KnownSolutions |
| |
| static KnownSolutions | msKnownSolutions |
| |
General class to interface with the Gnu Linear Programming Kit
- See also
- http://kam.mff.cuni.cz/~elias/glpk.pdf
◆ GLPKSolver() [1/2]
| graph_analysis::algorithms::lp::embedded::GLPKSolver::GLPKSolver |
( |
| ) |
|
◆ GLPKSolver() [2/2]
| graph_analysis::algorithms::lp::embedded::GLPKSolver::GLPKSolver |
( |
const std::string & |
problemName | ) |
|
◆ ~GLPKSolver()
| graph_analysis::algorithms::lp::embedded::GLPKSolver::~GLPKSolver |
( |
| ) |
|
|
virtual |
◆ doLoadProblem()
| void graph_analysis::algorithms::lp::embedded::GLPKSolver::doLoadProblem |
( |
const std::string & |
filename, |
|
|
LPSolver::ProblemFormat |
format = CPLEX |
|
) |
| |
|
overridevirtual |
◆ getObjectiveValue()
| double graph_analysis::algorithms::lp::embedded::GLPKSolver::getObjectiveValue |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getProblemName()
| std::string graph_analysis::algorithms::lp::embedded::GLPKSolver::getProblemName |
( |
| ) |
const |
|
inline |
◆ getSolverType()
| LPSolver::Type graph_analysis::algorithms::lp::embedded::GLPKSolver::getSolverType |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getVariableValue()
| double graph_analysis::algorithms::lp::embedded::GLPKSolver::getVariableValue |
( |
const std::string & |
varName | ) |
const |
◆ getVariableValueByColumnIdx()
| double graph_analysis::algorithms::lp::embedded::GLPKSolver::getVariableValueByColumnIdx |
( |
uint32_t |
idx | ) |
const |
|
overridevirtual |
◆ loadSolution()
◆ printHook()
| int graph_analysis::algorithms::lp::embedded::GLPKSolver::printHook |
( |
void * |
info, |
|
|
const char * |
s |
|
) |
| |
|
static |
Hook function to redirect the output of glpk to the logger
◆ run() [1/2]
| Status graph_analysis::algorithms::lp::embedded::GLPKSolver::run |
( |
| ) |
|
|
inlineoverridevirtual |
◆ run() [2/2]
Run the solver with a given problem file
- Parameters
-
| problemFilename | filename of the problem to solve |
| problemFormat | format of the problem to solver |
| useCaching | To use caching of problem and respective solutions set to True, otherwise False |
Implements graph_analysis::algorithms::LPSolver.
◆ saveProblem()
| void graph_analysis::algorithms::lp::embedded::GLPKSolver::saveProblem |
( |
const std::string & |
filename, |
|
|
LPSolver::ProblemFormat |
format = CPLEX |
|
) |
| const |
|
overridevirtual |
◆ saveSolution()
◆ translateIntoptReturnCode()
| GLPKSolver::Status graph_analysis::algorithms::lp::embedded::GLPKSolver::translateIntoptReturnCode |
( |
int |
code | ) |
|
|
protected |
◆ translateSimplexReturnCode()
| GLPKSolver::Status graph_analysis::algorithms::lp::embedded::GLPKSolver::translateSimplexReturnCode |
( |
int |
code | ) |
|
|
protected |
◆ mpProblem
| glp_prob* graph_analysis::algorithms::lp::embedded::GLPKSolver::mpProblem |
|
protected |
The documentation for this class was generated from the following files:
- /build/rock-master-22.06-tools-graph-analysis-0.20210908/src/algorithms/lp/embedded/GLPKSolver.hpp
- /build/rock-master-22.06-tools-graph-analysis-0.20210908/src/algorithms/lp/embedded/GLPKSolver.cpp