LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
mam_lowering.h File Reference

LINE Agent Language (LAL): lowering of embedded LINE networks to the agents SolverMAM's LAL methods read. More...

#include <algorithm>
#include <cctype>
#include <cmath>
#include <map>
#include <optional>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include "line/lang/lal/builder.h"
#include "line/lang/lal/ctmc.h"
#include "line/solvers/ctmc/solver_ctmc_analyzer.h"
Include dependency graph for mam_lowering.h:

Go to the source code of this file.

Classes

struct  line::lal::LoweredComposition
 A composition lowered for SolverMAM, with the map of lowered action labels to node-event labels. More...

Namespaces

namespace  line
 Conservation laws of a layered queueing network, enumerated from its structure.
namespace  line::lal

Functions

LoweredComposition line::lal::lower (const Composition &composition)
 A Composition of plain agents equivalent to composition, or itself (lower).
ActionTable line::lal::relabel_action_table (const ActionTable &table, const std::map< std::string, std::string > &mapping)
 Rename lowered action rows to their node-event labels, summing rows that share one (relabel_action_table).

Detailed Description

LINE Agent Language (LAL): lowering of embedded LINE networks to the agents SolverMAM's LAL methods read.

Port of python/line_solver/lal/mam_lowering.py.

SolverMAM's composition methods (finite and infinite QBDs, Jackson, parallel QBDs, the source decomposition and marked thinning) recognize a level agent whose states count the jobs of a queue, and source agents whose states are the phases of a MAP or MMAP. An embedded Network is lowered to exactly those agents when its structure allows it, so that the matrix-analytic methods solve the network itself rather than its truncated enumeration:

  • every station is a Queue visited by ONE open class, with exponential service on c servers, or phase-type service on one server (a separate service clock whose completions are the departures), FCFS, LCFS, SIRO or PS scheduling, and an infinite or finite capacity;
  • a finite capacity under LINE's DROP rule loses the arriving job, which is a self-event of the full queue; under a blocking rule the arrival is blocked;
  • routing is sn.rtnodes between Queue nodes and to a Sink, with no class switching; a Source contributes its Exp, MAP or marked-MAP arrival process, each class going to a single queue;
  • hand agents may inject arrivals of a queue's class; a hand observer of a node event is not lowered.

The lowered transitions keep route-specific names (Q.to_Q2, Q.out), so the solvers' raw rows stay distinct per route, which getQueueTable needs; labels maps them to LINE's node-event labels (Q.DEP[Jobs], the service clock's phase moves as Q.PHASE[Jobs], a Source's emissions as Src.DEP[cls]) for the presented action table. A network outside this structure is refused by name, and SolverCTMC remains the method for it.

Definition in file mam_lowering.h.