|
| LPSolver::Type | getSolverType () const override |
| |
| std::string | createSolverCommand () const override |
| |
| Solution | readBasicSolution (const std::string &filename) override |
| |
Public Member Functions inherited from graph_analysis::algorithms::lp::CommandlineSolver |
| | CommandlineSolver () |
| |
| virtual | ~CommandlineSolver () |
| |
| std::string | getProblemName () const |
| |
| void | doLoadProblem (const std::string &filename, LPSolver::ProblemFormat format=CPLEX) override |
| |
| void | saveProblem (const std::string &filename, LPSolver::ProblemFormat format=CPLEX) const override |
| |
| void | loadSolution (const std::string &filename, LPSolver::SolutionType format=BASIC_SOLUTION) override |
| |
| void | saveSolution (const std::string &filename, LPSolver::SolutionType format=BASIC_SOLUTION) const override |
| |
| double | getObjectiveValue () const override |
| |
| double | getVariableValue (const std::string &varName) const |
| |
| Status | run () override |
| |
| Status | run (const std::string &problem, LPSolver::ProblemFormat problemFormat=CPLEX, bool useCaching=false) override |
| |
| | CommandlineSolver () |
| |
| virtual | ~CommandlineSolver () |
| |
| std::string | getProblemName () const |
| |
| void | doLoadProblem (const std::string &filename, LPSolver::ProblemFormat format=CPLEX) override |
| |
| void | saveProblem (const std::string &filename, LPSolver::ProblemFormat format=CPLEX) const override |
| |
| void | loadSolution (const std::string &filename, LPSolver::SolutionType format=BASIC_SOLUTION) override |
| |
| void | saveSolution (const std::string &filename, LPSolver::SolutionType format=BASIC_SOLUTION) const override |
| |
| double | getObjectiveValue () const override |
| |
| double | getVariableValueByColumnIdx (uint32_t idx) const override |
| |
| double | getVariableValue (const std::string &varName) const |
| |
| Status | run () override |
| |
| Status | run (const std::string &problem, LPSolver::ProblemFormat problemFormat=CPLEX, bool useCaching=false) override |
| |
| | LPSolver () |
| |
| virtual | ~LPSolver () |
| |
| bool | loadProblem (const std::string &filename, ProblemFormat format=CPLEX) |
| |
| std::string | saveProblemToTempfile (LPSolver::ProblemFormat format=CPLEX) const |
| |
| std::string | saveSolutionToTempfile (LPSolver::SolutionType format=BASIC_SOLUTION) const |
| |
| std::string | getVariableNameByColumnIdx (uint32_t idx) const |
| |
| uint32_t | getColumnIdxByVariableName (const std::string &varName) const |
| |
| const std::string & | getProblemFile () const |
| |
| LPSolver::ProblemFormat | getProblemFileFormat () const |
| |
| const std::string & | getSolutionFile () const |
| |
| LPSolver::SolutionType | getSolutionFileFormat () const |
| |
| virtual std::vector< size_t > | infeasibleConstraints () const |
| |
| void | setSolutionCacheSize (size_t size) |
| |
| size_t | getSolutionCacheSize () const |
| |
| void | resetSolutionCache () |
| |
|
| 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 LPSolver::Ptr | getInstance (LPSolver::Type solverType) |
| |
| static ProblemFormat | getProblemFormatFromFileExtension (const std::string &extension) |
| |
| static std::string | getTempFilename (const std::string &suffix=".lp") |
| |
| 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 |
| |
| Status | loadKnownSolution (const std::string &problemFilename) |
| |
| void | registerSolution (const std::string &problemFilename, const std::string &solutionFilename, Status status, SolutionType type) |
| |
| const LPSolver::KnownSolutions::mapped_type & | getRegisteredSolution (const std::string &problemFilename) const |
| |
Protected Attributes inherited from graph_analysis::algorithms::lp::CommandlineSolver |
| Solution | mSolution |
| |
| std::string | mProblemFile |
| |
| LPSolver::ProblemFormat | mProblemFileFormat |
| |
| std::string | mSolutionFile |
| |
| LPSolver::SolutionType | mSolutionFileFormat |
| |
| size_t | mSolutionCacheSize |
| |
| static KnownSolutions | msKnownSolutions |
| |
General class to call the Scip solver