LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::lal::MAMOptions Struct Reference

The options of SolverMAM on a LAL composition (SolverMAMOptions). More...

#include <line/lang/lal/solver_mam.h>

Collaboration diagram for line::lal::MAMOptions:

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

Detailed Description

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.

Member Function Documentation

◆ from_kwargs()

MAMOptions line::lal::MAMOptions::from_kwargs ( const nlohmann::json & kwargs,
const std::string & method = "default" )
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.

◆ key()

std::string line::lal::MAMOptions::key ( ) const
inline

Member Data Documentation

◆ arith

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().

◆ config

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().

◆ cutoff

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().

◆ lal_compress_method

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().

◆ lal_fit_time

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().

◆ lal_fit_tolerance

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().

◆ lal_level_agent

std::optional<std::string> line::lal::MAMOptions::lal_level_agent

◆ lal_max_phases

◆ lal_max_states

◆ lal_traffic_method

std::string line::lal::MAMOptions::lal_traffic_method = "auto"

◆ lang

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().

◆ max_iter

long line::lal::MAMOptions::max_iter = 100

◆ method

std::string line::lal::MAMOptions::method = "default"

◆ space_max

long line::lal::MAMOptions::space_max = 1000

Definition at line 78 of file solver_mam.h.

Referenced by from_kwargs(), and key().

◆ timeout

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().

◆ timespan

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().

◆ tol

double line::lal::MAMOptions::tol = 1e-4

◆ verbose

bool line::lal::MAMOptions::verbose = false

Definition at line 80 of file solver_mam.h.

Referenced by from_kwargs(), and key().


The documentation for this struct was generated from the following file: