1function L = me_gegec_mql(lambda, Ca, mu, Cs, c)
2%ME_GEGEC_MQL Mean queue length of a stable infinite-capacity GE/GE/c/FCFS queue
4% Exact ME solution of Kouvatsos (1994), equation (3.9). Shared by the
5% infinite-capacity branch of ME_OQN_BLK; ME_OQN carries a numerically
6% identical local copy because it
is compiled to a MEX file by MEXIFY.
10% Ca - Squared coefficient of variation of the interarrival times
11% mu - Service rate of one server
12% Cs - Squared coefficient of variation of the service times
13% c - Number of servers (finite, c >= 1)
16% L - Mean number of jobs in the queue
19% D.D. Kouvatsos,
"Entropy Maximisation and Queueing Network Models",
20% Annals of Operations Research, 48:63-126, 1994, equation (3.9).
22% Copyright (c) 2012-2026, Imperial College London
29lambda2 = beta2 * lambda;
33 g(j) = (lambda2 + (j - 1) * mu2 * beta1) * alpha2 / (j * mu2 * (1 - alpha1 * beta1));
35g(c) = (lambda2 + (c - 1) * mu2 * beta1) * alpha2 / (lambda2 * alpha1 + c * mu2);
36x = (lambda2 + c * mu2 * beta1) / (lambda2 * alpha1 + c * mu2);
38Z = 1 + sum(Gn(1:c-1)) + Gn(c) / (1 - x);
43S2 = Gn(c) * (c / (1 - x) + x / (1 - x)^2);