![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
The options of SolverMAM on a LAL composition (SolverMAMOptions). More...
#include <line/lang/lal/solver_mam.h>
Public Member Functions | |
| std::string | key () const |
| The cache key (Python repr(self.options)). | |
Static Public Member Functions | |
| static MAMOptions | from_kwargs (const nlohmann::json &kwargs, const std::string &method="default") |
| Options from Python-style keyword arguments (SolverMAM(model, **kwargs)). | |
Public Attributes | |
| std::string | method = "default" |
| double | tol = 1e-4 |
| long | max_iter = 100 |
| long | space_max = 1000 |
| nlohmann::json | config = nlohmann::json::object() |
| bool | verbose = false |
| double | timeout = std::numeric_limits<double>::infinity() |
| std::string | lang = "python" |
| std::optional< std::string > | arith |
| std::optional< nlohmann::json > | timespan |
| refused when set | |
| std::optional< nlohmann::json > | cutoff |
| refused when set | |
| double | lal_max_phases = 64 |
| double | lal_max_states = 50000 |
| std::optional< std::string > | lal_level_agent |
| std::string | lal_traffic_method = "auto" |
| std::string | lal_compress_method = "exponential" |
| double | lal_fit_time = 1.0 |
| double | lal_fit_tolerance = 0.05 |
The options of SolverMAM on a LAL composition (SolverMAMOptions).
lal_max_phases and lal_max_states are held as doubles so that a non-integral value reaches supportsModelMethod, which refuses it as Python refuses a non-int. config, arith, timespan and cutoff exist only to be refused by runAnalyzer, as in Python.
Definition at line 74 of file solver_mam.h.
|
inlinestatic |
Options from Python-style keyword arguments (SolverMAM(model, **kwargs)).
A name that is not a SolverMAMOptions field, timespan and cutoff included, is refused with LINE:unsupported:Option, as Python refuses it at construction on a LAL composition.
Definition at line 112 of file solver_mam.h.
References arith, config, line::ErrorKind::ErrorKind(), line::InputError::InputError(), lal_compress_method, lal_fit_time, lal_fit_tolerance, lal_level_agent, lal_max_phases, lal_max_states, lal_traffic_method, lang, max_iter, method, space_max, timeout, tol, line::UnsupportedError::UnsupportedError(), and verbose.
|
inline |
The cache key (Python repr(self.options)).
Definition at line 95 of file solver_mam.h.
References arith, config, cutoff, lal_compress_method, lal_fit_time, lal_fit_tolerance, lal_level_agent, lal_max_phases, lal_max_states, lal_traffic_method, lang, max_iter, method, space_max, timeout, timespan, tol, and verbose.
| std::optional<std::string> line::lal::MAMOptions::arith |
Definition at line 83 of file solver_mam.h.
Referenced by from_kwargs(), key(), and line::lal::SolverMAM::runAnalyzer().
| nlohmann::json line::lal::MAMOptions::config = nlohmann::json::object() |
Definition at line 79 of file solver_mam.h.
Referenced by from_kwargs(), key(), and line::lal::SolverMAM::runAnalyzer().
| std::optional<nlohmann::json> line::lal::MAMOptions::cutoff |
refused when set
Definition at line 85 of file solver_mam.h.
Referenced by key(), and line::lal::SolverMAM::runAnalyzer().
| std::string line::lal::MAMOptions::lal_compress_method = "exponential" |
Definition at line 90 of file solver_mam.h.
Referenced by from_kwargs(), key(), and line::lal::SolverMAM::runAnalyzer().
| double line::lal::MAMOptions::lal_fit_time = 1.0 |
Definition at line 91 of file solver_mam.h.
Referenced by from_kwargs(), key(), and line::lal::SolverMAM::runAnalyzer().
| double line::lal::MAMOptions::lal_fit_tolerance = 0.05 |
Definition at line 92 of file solver_mam.h.
Referenced by from_kwargs(), key(), and line::lal::SolverMAM::runAnalyzer().
| std::optional<std::string> line::lal::MAMOptions::lal_level_agent |
Definition at line 88 of file solver_mam.h.
Referenced by from_kwargs(), key(), line::lal::SolverMAM::runAnalyzer(), and line::lal::SolverMAM::supportsModelMethod().
| double line::lal::MAMOptions::lal_max_phases = 64 |
Definition at line 86 of file solver_mam.h.
Referenced by from_kwargs(), line::lal::SolverMAM::getCompositionCapabilities(), key(), line::lal::parallel_qbd(), line::lal::SolverMAM::runAnalyzer(), and line::lal::SolverMAM::supportsModelMethod().
| double line::lal::MAMOptions::lal_max_states = 50000 |
Definition at line 87 of file solver_mam.h.
Referenced by from_kwargs(), line::lal::SolverMAM::getCompositionCapabilities(), key(), line::lal::parallel_qbd(), line::lal::SolverMAM::runAnalyzer(), and line::lal::SolverMAM::supportsModelMethod().
| std::string line::lal::MAMOptions::lal_traffic_method = "auto" |
Definition at line 89 of file solver_mam.h.
Referenced by from_kwargs(), line::lal::SolverMAM::getCompositionCapabilities(), key(), line::lal::parallel_qbd(), line::lal::SolverMAM::runAnalyzer(), and line::lal::SolverMAM::supportsModelMethod().
| std::string line::lal::MAMOptions::lang = "python" |
Definition at line 82 of file solver_mam.h.
Referenced by from_kwargs(), key(), and line::lal::SolverMAM::runAnalyzer().
| long line::lal::MAMOptions::max_iter = 100 |
Definition at line 77 of file solver_mam.h.
Referenced by from_kwargs(), key(), line::lal::parallel_qbd(), and line::lal::SolverMAM::runAnalyzer().
| std::string line::lal::MAMOptions::method = "default" |
Definition at line 75 of file solver_mam.h.
Referenced by from_kwargs(), line::lal::SolverMAM::getCompositionCapabilities(), key(), line::lal::parallel_qbd(), and line::lal::SolverMAM::runAnalyzer().
| long line::lal::MAMOptions::space_max = 1000 |
Definition at line 78 of file solver_mam.h.
Referenced by from_kwargs(), and key().
| double line::lal::MAMOptions::timeout = std::numeric_limits<double>::infinity() |
Definition at line 81 of file solver_mam.h.
Referenced by from_kwargs(), key(), and line::lal::SolverMAM::runAnalyzer().
| std::optional<nlohmann::json> line::lal::MAMOptions::timespan |
refused when set
Definition at line 84 of file solver_mam.h.
Referenced by key(), and line::lal::SolverMAM::runAnalyzer().
| double line::lal::MAMOptions::tol = 1e-4 |
Definition at line 76 of file solver_mam.h.
Referenced by from_kwargs(), key(), line::lal::parallel_qbd(), and line::lal::SolverMAM::runAnalyzer().
| bool line::lal::MAMOptions::verbose = false |
Definition at line 80 of file solver_mam.h.
Referenced by from_kwargs(), and key().