![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Joint stationary distribution of the M/M/1/1 retrial queue. More...
#include <cmath>#include <string>#include <vector>#include "line/api/qsys/qsys_retrial_policy.h"#include "line/num/number.h"#include "line/util/error.h"Go to the source code of this file.
Classes | |
| struct | line::qsys::Mm11RetrialResult< T > |
| The outputs [P0, P1, N, Norb] of qsys_mm11_retrial. More... | |
Namespaces | |
| namespace | line |
| Conservation laws of a layered queueing network, enumerated from its structure. | |
| namespace | line::qsys |
Functions | |
| template<class T> | |
| Mm11RetrialResult< T > | line::qsys::qsys_mm11_retrial (const T &lambda, const T &mu, const T &nu, RetrialPolicy policy=RetrialPolicy::LINEAR, long nmax=-1) |
Joint stationary distribution of the M/M/1/1 retrial queue.
Port of matlab/src/api/qsys/qsys_mm11_retrial.m. P0[n] and P1[n] are the probabilities that the orbit holds n customers with the server idle and busy, for n = 0..nmax.
LINEAR (Falin and Templeton 1997, Sec. 1.2), a = lambda/nu, rho < 1: P0[n] = (1-rho)^(a+1) rho^n (a)_n / n!, P1[n] = (1-rho)^(a+1) rho^(n+1) (a+1)_n / n! (negative-binomial marginals, computed by a stable term recursion). CONSTANT (Fayolle 1986), r = lambda(lambda+nu)/(mu nu) < 1, g = lambda/(lambda+nu): P1[n] = rho r^n p00, P0[n] = g r^n p00 for n >= 1, P0[0] = p00, p00 = 1/(1 + g r/(1-r) + rho/(1-r)).
With nmax < 0 the distribution is truncated once the remaining tail mass falls below 1e-12. N = Norb + rho. An unstable queue raises LINE:input:Unstable. The function needs pow and log, so it requires a transcendental number type.
Definition in file qsys_mm11_retrial.h.