![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
LINE Agent Language (LAL): lowering of a restricted open MAP/PH network to the native MAM dec.source decomposition (solver_mam/lal_map_network.py), plus the structural recogniser the parallel QBD shares (solver_mam/lal_parallel_qbd.py recognize). More...
#include <cmath>#include <functional>#include <map>#include <optional>#include <set>#include <string>#include <utility>#include <vector>#include "line/lang/distributions.h"#include "line/lang/lal/mam_jackson.h"#include "line/lang/lal/mam_traffic.h"#include "line/lang/qn/network_builder.h"#include "line/solvers/mam/mam_dispatch.h"Go to the source code of this file.
Classes | |
| struct | line::lal::ClockRoute |
| One routed completion mark of a PH service clock. More... | |
| struct | line::lal::ServiceClock |
| A PH service clock driving a queue (the clocks[q] dictionary). More... | |
| struct | line::lal::MapMatch |
| The recognised MAP network (lal_map_network.recognize tuple). More... | |
Namespaces | |
| namespace | line |
| Conservation laws of a layered queueing network, enumerated from its structure. | |
| namespace | line::lal |
Typedefs | |
| typedef std::vector< std::pair< std::optional< std::pair< std::vector< double >, Matrix< double > > >, double > > | line::lal::NativeServices |
| Per-queue service law handed to the native dec.source solve: a PH (alpha, T) or, when empty, an exponential with the given rate. | |
| typedef std::function< std::pair< std::vector< double >, std::vector< double > >(const Matrix< double > &, const Matrix< double > &, const NativeServices &, const std::vector< long > &, const Matrix< double > &, std::size_t, const std::string &, const std::string &, double, long, double)> | line::lal::NativeDecSourceBackend |
| The native dec.source solve behind map_network and marked_thinning (Python's SolverMAM(network, method='dec.source').getAvgTable()), with the arguments of detail::native_dec_source, returning per-queue (QLen, Tput). | |
Functions | |
| std::pair< std::optional< MapMatch >, std::string > | line::lal::recognize_map (const Model &snapshot, bool allow_split=false) |
| Recognise a restricted open MAP/PH network (lal_map_network.recognize). | |
| std::pair< std::optional< MapMatch >, std::string > | line::lal::recognize_parallel (const Model &snapshot) |
| Recognise independent stations with shared marked sources (lal_parallel_qbd.recognize). | |
| MamResult | line::lal::map_network (const Composition &model, double tol=1e-4, long max_iter=100, double max_phases=64, const std::string &traffic_method="auto", const std::string &compress_method="exponential", double fit_time=1.0, double fit_tolerance=.05, const NativeDecSourceBackend &native_backend=NativeDecSourceBackend()) |
| Native MAM decomposition of a recognised MAP network (lal_map_network.solve_composition). | |
LINE Agent Language (LAL): lowering of a restricted open MAP/PH network to the native MAM dec.source decomposition (solver_mam/lal_map_network.py), plus the structural recogniser the parallel QBD shares (solver_mam/lal_parallel_qbd.py recognize).
The native decomposition is the C++ mam::mam_dispatch with method dec.source, the port of the MATLAB reference analyzer, where Python runs its own native SolverMAM.
Definition in file mam_map_network.h.