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

Exact mean response time of the M/G/1 queue (Pollaczek-Khinchine). More...

Include dependency graph for qsys_mg1.h:

Go to the source code of this file.

Namespaces

namespace  line
namespace  line::qsys

Functions

template<class T>
QsysResult< T > line::qsys::qsys_mg1 (const T &lambda, const T &mu, const T &cs)
 Exact mean response time of the M/G/1 queue (Pollaczek-Khinchine).

Detailed Description

Exact mean response time of the M/G/1 queue (Pollaczek-Khinchine).

Templated port of matlab/src/api/qsys/qsys_mg1.m, cross-checked against jar/src/main/java/jline/api/qsys/Qsys_mg1.java (identical).

rho = lambda/mu Q = rho + rho^2/(2(1-rho)) + lambda^2 cs^2 / mu^2 / (2(1-rho)) W = Q/lambda, rhohat = Q/(1+Q)

Only integer powers appear, so the function is exact for T = Rational. Note that cs is the coefficient of variation, squared inside the formula.

Definition in file qsys_mg1.h.