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

The union of Python's LAL MAM result dataclasses. More...

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

Inheritance diagram for line::lal::MamResult:
Collaboration diagram for line::lal::MamResult:

Public Attributes

std::string level_agent
double residual = 0.0
std::optional< std::string > residual_kind
std::vector< std::vector< double > > level_probabilities
 One row per displayed level (finite and infinite QBD) or per level (reachable QBD).
std::vector< std::vector< std::string > > phase_states
 Phase tuples as agent-state names, in the column order of level_probabilities.
std::optional< Traffic > traffic
std::optional< QueueTable > queue_measures
std::map< std::string, double > queue_means
 empty: Python has no queue_means
std::optional< double > mean_level
std::optional< Matrix< double > > rate_matrix
std::optional< double > rate_matrix_residual
std::optional< double > spectral_radius
std::optional< double > drift
std::optional< double > tail_probability
std::optional< std::size_t > reachable_states
std::vector< double > closed_class_weights
std::optional< std::string > approximation
std::vector< std::string > source_marks
std::vector< MarkedMatrices > source_matrices
std::vector< std::string > phase_dependent_routing
std::vector< std::string > correlated_service_reset
std::vector< std::string > unavailable_clock_phases
std::vector< std::string > unavailable_busy_probabilities
 multiserver queues: Busy is NaN
std::optional< double > native_time_scale
 dec.source: factor dividing the lowered network's rates
nlohmann::json native_time_scales
 marked.thinning: station -> scale (null without input); null: absent
nlohmann::json poissonised_visit_excess = nlohmann::json::object()
nlohmann::json native_internal_fitting
 null: absent
nlohmann::json extra = nlohmann::json::object()
bool has_converged = false
 whether the lowering reports converged at all
std::optional< ActionTable > raw_action_table
 The action table under the lowered agents' own route-specific labels, kept when an embedded network was lowered (python raw_action_table): getQueueTable needs the per-route rows that the presented table sums.
Public Attributes inherited from line::lal::Result
std::string method = "ctmc"
bool exact = false
bool truncated = false
std::optional< std::string > fallback_reason
bool converged = true
int iterations = 0
StateTable state_table
ActionTable action_table
std::vector< std::vector< std::size_t > > states
 joint states (CTMC)
std::vector< double > probabilities
 joint probabilities (CTMC)
std::optional< Compiled > compiled
nlohmann::json diagnostics = nlohmann::json::object()
std::vector< std::pair< std::string, double > > rewards
 Stationary expectations of the rewards declared with Composition::setReward, in order.

Detailed Description

The union of Python's LAL MAM result dataclasses.

Definition at line 118 of file mam_common.h.

Member Data Documentation

◆ approximation

std::optional<std::string> line::lal::MamResult::approximation

◆ closed_class_weights

std::vector<double> line::lal::MamResult::closed_class_weights

Definition at line 136 of file mam_common.h.

Referenced by line::lal::reachable_qbd().

◆ correlated_service_reset

std::vector<std::string> line::lal::MamResult::correlated_service_reset

◆ drift

std::optional<double> line::lal::MamResult::drift

Definition at line 133 of file mam_common.h.

Referenced by line::lal::infinite_qbd().

◆ extra

nlohmann::json line::lal::MamResult::extra = nlohmann::json::object()

◆ has_converged

bool line::lal::MamResult::has_converged = false

whether the lowering reports converged at all

Definition at line 149 of file mam_common.h.

Referenced by line::lal::map_network(), and line::lal::marked_thinning().

◆ level_agent

std::string line::lal::MamResult::level_agent

◆ level_probabilities

std::vector<std::vector<double> > line::lal::MamResult::level_probabilities

One row per displayed level (finite and infinite QBD) or per level (reachable QBD).

Definition at line 123 of file mam_common.h.

Referenced by line::lal::finite_qbd(), line::lal::infinite_qbd(), and line::lal::reachable_qbd().

◆ mean_level

std::optional<double> line::lal::MamResult::mean_level

Definition at line 129 of file mam_common.h.

Referenced by line::lal::SolverMAM::getQueueTable(), and line::lal::infinite_qbd().

◆ native_internal_fitting

nlohmann::json line::lal::MamResult::native_internal_fitting

◆ native_time_scale

std::optional<double> line::lal::MamResult::native_time_scale

dec.source: factor dividing the lowered network's rates

Definition at line 144 of file mam_common.h.

Referenced by line::lal::SolverMAM::getMAMDiagnostics(), and line::lal::map_network().

◆ native_time_scales

nlohmann::json line::lal::MamResult::native_time_scales

marked.thinning: station -> scale (null without input); null: absent

Definition at line 145 of file mam_common.h.

Referenced by line::lal::SolverMAM::getMAMDiagnostics(), and line::lal::marked_thinning().

◆ phase_dependent_routing

std::vector<std::string> line::lal::MamResult::phase_dependent_routing

◆ phase_states

std::vector<std::vector<std::string> > line::lal::MamResult::phase_states

Phase tuples as agent-state names, in the column order of level_probabilities.

Definition at line 125 of file mam_common.h.

Referenced by line::lal::finite_qbd(), line::lal::infinite_qbd(), and line::lal::reachable_qbd().

◆ poissonised_visit_excess

nlohmann::json line::lal::MamResult::poissonised_visit_excess = nlohmann::json::object()

◆ queue_means

std::map<std::string, double> line::lal::MamResult::queue_means

empty: Python has no queue_means

Definition at line 128 of file mam_common.h.

Referenced by line::lal::SolverMAM::getQueueTable(), and line::lal::jackson().

◆ queue_measures

◆ rate_matrix

std::optional<Matrix<double> > line::lal::MamResult::rate_matrix

Definition at line 130 of file mam_common.h.

Referenced by line::lal::infinite_qbd().

◆ rate_matrix_residual

std::optional<double> line::lal::MamResult::rate_matrix_residual

Definition at line 131 of file mam_common.h.

Referenced by line::lal::infinite_qbd().

◆ raw_action_table

std::optional<ActionTable> line::lal::MamResult::raw_action_table

The action table under the lowered agents' own route-specific labels, kept when an embedded network was lowered (python raw_action_table): getQueueTable needs the per-route rows that the presented table sums.

Definition at line 155 of file mam_common.h.

Referenced by line::lal::SolverMAM::getQueueTable(), and line::lal::SolverMAM::runAnalyzer().

◆ reachable_states

std::optional<std::size_t> line::lal::MamResult::reachable_states

Definition at line 135 of file mam_common.h.

Referenced by line::lal::reachable_qbd().

◆ residual

◆ residual_kind

std::optional<std::string> line::lal::MamResult::residual_kind

◆ source_marks

std::vector<std::string> line::lal::MamResult::source_marks

Definition at line 138 of file mam_common.h.

Referenced by line::lal::map_network().

◆ source_matrices

std::vector<MarkedMatrices> line::lal::MamResult::source_matrices

Definition at line 139 of file mam_common.h.

Referenced by line::lal::map_network().

◆ spectral_radius

std::optional<double> line::lal::MamResult::spectral_radius

Definition at line 132 of file mam_common.h.

Referenced by line::lal::infinite_qbd().

◆ tail_probability

std::optional<double> line::lal::MamResult::tail_probability

Definition at line 134 of file mam_common.h.

Referenced by line::lal::infinite_qbd().

◆ traffic

◆ unavailable_busy_probabilities

std::vector<std::string> line::lal::MamResult::unavailable_busy_probabilities

◆ unavailable_clock_phases

std::vector<std::string> line::lal::MamResult::unavailable_clock_phases

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