![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Myskja's enhanced third-moment approximation of the mean response time of a G/I/G/1 queue. More...
#include "line/api/qsys/qsys_mg1.h"#include "line/api/qsys/qsys_types.h"#include "line/num/number.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_myskja2 (const T &lambda, const T &mu, const T &ca, const T &cs, const T &q0, const T &qa) |
| Myskja's enhanced third-moment approximation of the mean response time of a G/I/G/1 queue. | |
Myskja's enhanced third-moment approximation of the mean response time of a G/I/G/1 queue.
Templated port of matlab/src/api/qsys/qsys_gig1_approx_myskja2.m.
ra = (1+ca^2)/2, rs = (1+cs^2)/2, rho = lambda/mu theta = [ rho(qa-ra) - (qa-ra^2) ] / [ 2 rho (ra-1) ] d = (1+1/ra)(1-rs)(1-(q0/qa)^3)(1-rho^3) D = (rs-theta)^2 + (2 rs - 1 + d)(ra-1), clamped at 0 Wq = (rho/(1-rho))/mu [ rs + (1/rho)( sqrt(D) - (rs-theta) ) ], W = Wq + 1/mu
The waiting-time bracket is scaled by 1/mu (not 1/lambda): with that scale the formula is exact for every H2/M/1 queue (cs = 1, any qa) and tends to the exact M/G/1 anchor as ca -> 1. The 1/lambda scale used before 2026-11-23 missed both.
At ca = 1 the interpolation parameter theta is a 0/0 form, so the exact M/G/1 answer is returned instead; that is also the anchor the method interpolates from.
ARITHMETIC. sqrt(D) and the cube of q0/qa make this transcendental (the cube alone would not, but the square root does), so the function is gated.
ca and cs are coefficients of variation in all four codebases (the JAR once read them as SCVs; that was fixed in favour of MATLAB).
Definition in file qsys_gig1_approx_myskja2.h.