![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
LINE Agent Language (LAL): the result tables every LAL solver returns, the exact finite CTMC analysis (lal/ctmc.py, solve_composition) and the MDD aggregation (lal/mdd.py, solve_mdd). More...
#include <algorithm>#include <functional>#include <map>#include <set>#include <optional>#include <string>#include <vector>#include "json.hpp"#include "line/api/mc/ctmc_solve.h"#include "line/api/mdd/mdd.h"#include "line/api/mdd/mdd_mcd.h"#include "line/api/mdd/mdd_reachset.h"#include "line/api/mdd/mdd_types.h"#include "line/lang/lal/core.h"#include "line/lang/lal/tables.h"#include "line/util/lu.h"Go to the source code of this file.
Classes | |
| struct | line::lal::TableAttrs |
| The attrs of a LAL result table. More... | |
| struct | line::lal::StateRow |
| One row of a state table: Agent, State, Probability. More... | |
| struct | line::lal::ActionRow |
| One row of an action table: Action, Throughput. More... | |
| struct | line::lal::StateTable |
| struct | line::lal::ActionTable |
| struct | line::lal::Result |
| The result container shared by the LAL solver paths (LALCTMCResult, the AG decomposition results, SSA). More... | |
| struct | line::lal::MddSolution |
| The output of solve_mdd: the marginal table and the MCD aggregation. More... | |
Namespaces | |
| namespace | line |
| Conservation laws of a layered queueing network, enumerated from its structure. | |
| namespace | line::lal |
Functions | |
| StateTable | line::lal::agent_state_rows (const Model &snapshot, const std::vector< std::vector< std::size_t > > &states, const std::vector< double > &probs) |
| Marginal state probabilities of every agent (agent_state_rows): one row per local state of a hand agent; an embedded LINE model contributes one agent per stateful node, whose state is the node's row of LINE's state space, plus the stage agent of an embedded Environment. | |
| StateTable | line::lal::marginal_table (const Model &snapshot, const Compiled &compiled, const std::vector< double > &probs) |
| Agent-state marginals of a joint probability vector, in the Python row order. | |
| std::vector< std::pair< std::string, double > > | line::lal::reward_values (const Model &snapshot, const std::vector< std::vector< std::size_t > > &states, const std::vector< double > &probs) |
| Stationary expectation of every declared reward (reward_values). | |
| ActionTable | line::lal::action_table (const Compiled &compiled, const std::vector< double > &probs, const Model *snapshot=nullptr) |
| Labelled event throughputs probs @ rowsum(event), hidden labels left out. | |
| Result | line::lal::solve_composition (const Model &snapshot, std::size_t max_states=0, std::size_t max_dense_bytes=kDefaultMaxDenseBytes) |
| Solve a finite composition, respecting its initial state if reducible (solve_composition). | |
| MddSolution | line::lal::solve_mdd (const Model &snapshot, std::size_t max_states=100000) |
| MDD aggregation for finite active/passive compositions (solve_mdd). | |
Variables | |
| static const std::size_t | line::lal::kDefaultMaxDenseBytes = 256u * 1024u * 1024u |
| Default dense-storage budget of the CTMC path: 256 MiB. | |
LINE Agent Language (LAL): the result tables every LAL solver returns, the exact finite CTMC analysis (lal/ctmc.py, solve_composition) and the MDD aggregation (lal/mdd.py, solve_mdd).
The CTMC path is explicit enumeration, not a product form. The reachable state space is split into closed classes whose weights are the absorption probabilities from the declared initial distribution, so a reducible chain is solved from its initial state rather than refused.
Python's pandas tables with attrs become StateTable / ActionTable (rows plus TableAttrs); Python diagnostic dicts become nlohmann::json.
Definition in file ctmc.h.