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

Kraemer and Langenbach-Belz approximation for the G/I/G/1 queue. More...

Include dependency graph for qsys_gig1_approx_klb.h:

Go to the source code of this file.

Namespaces

namespace  line
namespace  line::qsys

Functions

template<class T>
QsysResult< T > line::qsys::qsys_gig1_approx_klb (const T &lambda, const T &mu, const T &ca, const T &cs)
 Kraemer and Langenbach-Belz approximation for the G/I/G/1 queue.

Detailed Description

Kraemer and Langenbach-Belz approximation for the G/I/G/1 queue.

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

g = exp(-2(1-rho)(1-ca^2)^2/(3 rho (ca^2+cs^2))) if ca <= 1 g = exp(-(1-rho)(ca^2-1)/(ca^2+4 cs^2)) otherwise W = 1/mu * ((rho/(1-rho)) (cs^2+ca^2)/2 g + 1)

The correction factor g is an exponential, so the function requires transcendental arithmetic and cannot be instantiated at T = Rational, even though g degenerates to exactly 1 at ca = 1.

Definition in file qsys_gig1_approx_klb.h.