The formula is named after its developer, T. O. Engset.
Consider a fleet of vehicles and 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 small so as to minimize costs, but large enough to ensure that the blocking probability is tolerable.
- be the (integer) number of servers.
- be the (integer) number of sources of traffic;
- be the idle source arrival rate (i.e., the rate at which a free source initiates requests);
- 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
By rearranging terms, one can rewrite the above formula as
where is the Gaussian Hypergeometric function.
There are several recursions that can be used to compute in a numerically stable manner.
Alternatively, any numerical package that supports the Hypergeometric function can be used. Some examples are given below.
from scipy.special import hyp2f1 P = 1. / hyp2f1(1, -c, N - c, -1. / (Lambda * h))
P = 1 / hypergeom([1, -c], N - c, -1 / (Lambda * h))
Unknown source arrival rate
In practice, it is often the case that the source arrival rate is unknown (or hard to estimate) while , the offered traffic per-source, is known. In this case, one can substitute the relationship
between the source arrival rate and blocking probability into the Engset formula to arrive at the fixed point equation
While the above removes the unknown 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 .
Alternatively, it is possible to use one of
- bisection, which converges unconditionally, or
- Newton's method, which is proven to converge for  (in practice, it also works for ).
An open source implementation is available for these methods.
- Tijms, Henk C. (2003). A first course in stochastic models. John Wiley and Sons. doi:10.1002/047001363X.
- Azimzadeh, Parsiad; Carpenter, Tommy (2016). "Fast Engset computation". Operations Research Letters. 44 (3): 313–318. arXiv:. doi:10.1016/j.orl.2016.02.011. ISSN 0167-6377.
- Zukerman, Moshe (2000). "An Introduction to Queueing Theory and Stochastic Teletraffic Models" (pdf). Retrieved 2012-11-27.