Misplaced Pages

Engset formula

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

In queueing theory, the Engset formula is used to determine the blocking probability of an M/M/c/c/N queue (in Kendall's notation).

The formula is named after its developer, T. O. Engset.

Example application

Consider a fleet of c {\displaystyle c} vehicles and N {\displaystyle N} operators. Operators enter the system randomly to request the use of a vehicle. If no vehicles are available, a requesting operator is "blocked" (i.e., the operator leaves without a vehicle). The owner of the fleet would like to pick c {\displaystyle c} small so as to minimize costs, but large enough to ensure that the blocking probability is tolerable.

Formula

Let

  • c > 0 {\displaystyle c>0} be the (integer) number of servers.
  • N > c {\displaystyle N>c} be the (integer) number of sources of traffic;
  • λ > 0 {\displaystyle \lambda >0} be the idle source arrival rate (i.e., the rate at which a free source initiates requests);
  • h > 0 {\displaystyle h>0} be the average holding time (i.e., the average time it takes for a server to handle a request);

Then, the probability of blocking is given by

P = ( N 1 c ) ( λ h ) c i = 0 c ( N 1 i ) ( λ h ) i . {\displaystyle P={\frac {{\binom {N-1}{c}}\left(\lambda h\right)^{c}}{\sum _{i=0}^{c}{\binom {N-1}{i}}\left(\lambda h\right)^{i}}}.}

By rearranging terms, one can rewrite the above formula as

P = 1 2 F 1 ( 1 , c ; N c ; 1 / ( λ h ) ) {\displaystyle P={\frac {1}{{}_{2}F_{1}(1,-c;N-c;-1/(\lambda h))}}}

where 2 F 1 {\displaystyle {}_{2}F_{1}} is the Gaussian Hypergeometric function.

Computation

There are several recursions that can be used to compute P {\displaystyle P} in a numerically stable manner.

Alternatively, any numerical package that supports the hypergeometric function can be used. Some examples are given below.

Python with SciPy

from scipy.special import hyp2f1
P = 1.0 / hyp2f1(1, -c, N - c, -1.0 / (Lambda * h))

MATLAB with the Symbolic Math Toolbox

P = 1 / hypergeom(, N - c, -1 / (Lambda * h))

Unknown source arrival rate

In practice, it is often the case that the source arrival rate λ {\displaystyle \lambda } is unknown (or hard to estimate) while α > 0 {\displaystyle \alpha >0} , the offered traffic per-source, is known. In this case, one can substitute the relationship

λ h = α 1 α ( 1 P ) {\displaystyle \lambda h={\frac {\alpha }{1-\alpha (1-P)}}}

between the source arrival rate and blocking probability into the Engset formula to arrive at the fixed point equation

P = f ( P ) {\displaystyle P=f(P)}

where

f ( P ) = 1 2 F 1 ( 1 , c ; N c ; 1 P 1 / α ) . {\displaystyle f(P)={\frac {1}{{}_{2}F_{1}(1,-c;N-c;1-P-1/\alpha )}}.}

Computation

While the above removes the unknown λ {\displaystyle \lambda } from the formula, it introduces an additional point of complexity: we can no longer compute the blocking probability directly, and must use an iterative method instead. While a fixed-point iteration is tempting, it has been shown that such an iteration is sometimes divergent when applied to f {\displaystyle f} . Alternatively, it is possible to use one of bisection or Newton's method, for which an open source implementation is available.

References

  1. Tijms, Henk C. (2003). A first course in stochastic models. John Wiley and Sons. doi:10.1002/047001363X.
  2. ^ Azimzadeh, Parsiad; Carpenter, Tommy (2016). "Fast Engset computation". Operations Research Letters. 44 (3): 313–318. arXiv:1511.00291. doi:10.1016/j.orl.2016.02.011. ISSN 0167-6377.
  3. Zukerman, Moshe (2000). "An Introduction to Queueing Theory and Stochastic Teletraffic Models" (pdf). Retrieved 2012-11-27.
Category: