![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Exact normalizing-constant analysis of a discrete-time (slotted) model. More...
#include <cmath>#include <cstddef>#include <cstdio>#include <limits>#include <string>#include <vector>#include "line/api/dpfqn/dpfqn_nc.h"#include "line/api/dqsys/dqsys_bernoulli1.h"#include "line/api/sn/sn_rt_stations.h"#include "line/lang/qn/network_struct.h"#include "line/solvers/nc/nc_types.h"#include "line/util/error.h"Go to the source code of this file.
Classes | |
| struct | line::nc::DtModel< T > |
| Classification of a model against the discrete-time product form. More... | |
Namespaces | |
| namespace | line |
| Conservation laws of a layered queueing network, enumerated from its structure. | |
| namespace | line::nc |
Functions | |
| template<class T> | |
| DtModel< T > | line::nc::nc_is_dt_model (const qn::NetworkStruct< T > &sn, double slot_length=1.0) |
| Classify sn against the two discrete-time product-form families. | |
| template<class T> | |
| NcSolution< T > | line::nc::solver_nc_dt (const qn::NetworkStruct< T > &sn, const NcSolverOptions &opt) |
| Exact discrete-time analysis of sn. | |
Exact normalizing-constant analysis of a discrete-time (slotted) model.
Port of matlab/src/solvers/NC/nc_is_dt_model.m and solver_nc_dt_analyzer.m. The route is requested with NcSolverOptions::slotted (or timescale "discrete"), read by solvers::slotted_request exactly as SolverMAM and SolverLDES read it, and is never auto-detected: a Geometric service time is a perfectly ordinary continuous-time model unless the caller says the model lives on a slot lattice.
The slot must be the unit one. The slot length is the lattice unit, not a rescaling of the laws, and a Geometric(p) steps in whole time units: on a slot d > 1 it is off the lattice, and on d = 1/m it spends m slots per step, which is no longer the one-step Bernoulli server the product form needs.
Two families are covered, both from Daduna (2001):
chapter 2 a Bernoulli server fed by a Bernoulli arrival stream, with an unbounded buffer (theorem 2.3, corollary 2.7), a finite buffer (corollary 2.8) or a load-dependent service probability (example 2.10), evaluated by dqsys_bernoulli1; chapter 3 a closed cycle of Bernoulli servers (theorem 3.2, corollary 3.4), evaluated by dpfqn_nc when the service probabilities are state independent and by dpfqn_ncld otherwise.
THE ADMISSIBLE FEATURE SET IS NARROW BECAUSE THE PRODUCT FORM IS NARROW. Beyond the geometric service requirement:
A model that fails any of these is an ERROR, not a fallback to the continuous-time analyzer: the continuous-time answer to a slotted question is a different number, not a worse one.
Every metric is on the slot lattice, which nc_is_dt_model requires to be the unit one: a Geometric(p) is the same law in every solver, so its per-slot probability is p only on a slot of length 1. Rates are therefore per-slot probabilities and times are numbers of slots, which are also model time units.
Metrics are SLOT-BOUNDARY values (late arrival with delayed access): the state is read after the arrivals of a slot and before its departures, the stationary law phi of Chao, Miyazawa and Pinedo (1999), example 12.10. The slot-inside law psi gives a smaller queue and a response time one slot shorter.
Definition in file solver_nc_dt.h.