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

Whitt's approximation of the G/G/1 mean response time. More...

#include <cmath>
#include <limits>
#include "line/api/qsys/qsys_types.h"
#include "line/num/number.h"
Include dependency graph for qsys_gig1_approx_whitt.h:

Go to the source code of this file.

Namespaces

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

Functions

template<class T>
QsysResult< T > line::qsys::qsys_gig1_approx_whitt (const T &lambda, const T &mu, const T &ca, const T &cs)
 Whitt's approximation of the G/G/1 mean response time.

Detailed Description

Whitt's approximation of the G/G/1 mean response time.

Port of qsys_gig1_approx_whitt in python/line_solver/api/qsys/approximations.py. PYTHON-ONLY, and its own docstring says so: there is no qsys_gig1_approx_whitt.m.

It is the QNA single-server formula of Whitt, BSTJ 62(9), 1983, eqs. (44)-(45): the Kingman diffusion form Lq = rho^2 (ca^2 + cs^2) / (2 (1 - rho)) multiplied by the correction factor

g = exp(-2 (1-rho) (1-ca^2)^2 / (3 rho (ca^2 + cs^2))) if ca^2 < 1, g = 1 if ca^2 >= 1.

For ca^2 < 1 it is the Kraemer and Langenbach-Belz factor whatever cs^2 is; for ca^2 >= 1 QNA drops the KLB refinement ("Performance of the QNA", BSTJ 62(9), 1983, Table I: QNA is KLB when ca^2 < 1 and slightly greater when ca^2 > 1). The branch depends on ca^2 alone: the former four-arm version keyed it on cs^2 as well, leaving g = 1 for regular arrivals with bursty service and using KLB's ca^2 > 1 factor for bursty arrivals with regular service, neither of which is QNA.

An unstable queue returns an infinite response time and a unit utilization rather than dividing by a non-positive 1 - rho.

ARITHMETIC: transcendental (phi is an exponential).

Definition in file qsys_gig1_approx_whitt.h.