#include <Problem.hpp>
|
| | Problem (const std::string &name, OptimizationDirection optimizationDirection=OPTIMIZE_MIN) |
| |
| void | setRowBounds (const std::string &row, double min, double max) |
| |
| void | setRowBoundsExact (const std::string &row, double exact) |
| |
| void | addRow (const Row &row) |
| |
| Row & | rowByName (const std::string &name) |
| |
| Row & | rowByIdx (size_t idx, size_t offset=-1) |
| |
| void | setColumnBounds (const std::string &col, double min, double max) |
| |
| void | setColumnBoundsExact (const std::string &col, double exact) |
| |
| void | addColumn (const Column &column, bool doThrow=false) |
| |
| Column & | columnByIdx (size_t idx, size_t offset=-1) |
| |
| std::string | saveProblemToTempfile (LPSolver::ProblemFormat format=LPSolver::CPLEX) |
| |
| std::string | toString (size_t indent=0) const |
| |
◆ Problem()
- Parameters
-
| name | Name of the problem |
| optimizationDirection | Direction of the optimization, i.e. minimize or maximize |
◆ addColumn()
| void graph_analysis::algorithms::lp::Problem::addColumn |
( |
const Column & |
column, |
|
|
bool |
doThrow = false |
|
) |
| |
◆ addRow()
| void graph_analysis::algorithms::lp::Problem::addRow |
( |
const Row & |
row | ) |
|
◆ columnByIdx()
| Column & graph_analysis::algorithms::lp::Problem::columnByIdx |
( |
size_t |
idx, |
|
|
size_t |
offset = -1 |
|
) |
| |
Use offset to account for start idx like GLPK does at 1
◆ rowByIdx()
| Row & graph_analysis::algorithms::lp::Problem::rowByIdx |
( |
size_t |
idx, |
|
|
size_t |
offset = -1 |
|
) |
| |
Use offset to account for start idx like GLPK does at 1
◆ rowByName()
| Row & graph_analysis::algorithms::lp::Problem::rowByName |
( |
const std::string & |
name | ) |
|
◆ saveProblemToTempfile()
◆ setColumnBounds()
| void graph_analysis::algorithms::lp::Problem::setColumnBounds |
( |
const std::string & |
col, |
|
|
double |
min, |
|
|
double |
max |
|
) |
| |
◆ setColumnBoundsExact()
| void graph_analysis::algorithms::lp::Problem::setColumnBoundsExact |
( |
const std::string & |
col, |
|
|
double |
exact |
|
) |
| |
|
inline |
◆ setRowBounds()
| void graph_analysis::algorithms::lp::Problem::setRowBounds |
( |
const std::string & |
row, |
|
|
double |
min, |
|
|
double |
max |
|
) |
| |
◆ setRowBoundsExact()
| void graph_analysis::algorithms::lp::Problem::setRowBoundsExact |
( |
const std::string & |
row, |
|
|
double |
exact |
|
) |
| |
|
inline |
◆ toString()
| std::string graph_analysis::algorithms::lp::Problem::toString |
( |
size_t |
indent = 0 | ) |
const |
The documentation for this class was generated from the following files:
- /build/rock-master-22.06-tools-graph-analysis-0.20210908/src/algorithms/lp/Problem.hpp
- /build/rock-master-22.06-tools-graph-analysis-0.20210908/src/algorithms/lp/Problem.cpp