Ees 402
Ees 402
Ees 402
At one time or another you have waited in a line for service of some kind e.g. waiting in a bank
to be served, waiting in a health unit for or even in a supermarket for the next available cashier
etc.
Such a waiting line is referred to as a queue. Queues involve more than just people e.g. when a
car breaks down and requires some service, it will wait in a queue for the mechanic to reach it.
Therefore, a queue forms when some units require service but the service is not instantly
forthcoming. The field of knowledge developed from the study of queues is referred to as
queuing theory.
A queuing system refers to all components that make up the queuing arrangements. They
include,
Service facilities.
Many parameters of queuing model are not known with certainty i.e. they are stochastic rather
than deterministic. Such parameters as arrival rates and service rates are described by probability
distributions. Therefore, averages or expected values are employed in the queuing model.
In order to check whether or not a given queuing situation fits a known model we need a method
of classifying waiting lines. Such a classification must answer the following questions.
1. Does the queuing system have only one stage of service or multiple service stages?
Page 1 of 14
2. Is it a single service facility system or multiple service facilities system?
4. Does the time required for service occur in any pattern or is it random?
To answer question one and two, we must first decide whether a unit must pass through one
service point or a series of service points. A one service stage system will have only one input to
the service point and one output from the service point.
However, if the output from the first service point becomes the input to the second service point
and so on, then we have a multiple stage queuing system. This system is complex/ difficult to
If we restrict ourselves to the single stage system we now consider the number and arrangement
Page 2 of 14
3. Multiple service facilities with a single waiting line.
Output
Service 1 000
Service 3 000
The arrival of units for service and the service rates are generally not known with
certainty, i.e. the arrivals and the service rates must be described by probability
distributions and the distributions chosen must describe the manner in which arrivals and
There are three fairly common distributions used in queuing theory which include:
3. General distribution.
that can be said to have no memory of the past events i.e. they are memory less or
random walk.
manner.
A general distribution will be any other distribution. It is quite possible for the arrival
pattern to be described by one probability distribution and the service pattern by another.
Page 3 of 14
To allow easy communication about the various queuing system, Kendall, a British
mathematician, set up a short hand notation to describe parameters of a queuing system. In the
D – Service is determined.
1. Size of the population from which those that will enter the queuing system are selected. It
2. The manner in which the units arrive to enter the queuing system i.e. is it singly or in
groups.
3. The queue discipline – this is the order in which the units are served i.e. are units served
Page 4 of 14
The queuing behavior/discipline of the units plays a major role in queuing analysis. As
such units may move from one queue to another in the hope of reducing their waiting
time, such units are said to be jockey. Others may withdraw from joining a queue
altogether because they anticipate a long delay, such behavior is referred to as balking.
Others may leave the queue because they have been waiting for too long; such behavior
is referred as Reneging.
4. Consider whether or not there is enough room from all arrivals to join the waiting line.
Arrivals neither balk nor renege at the length of the waiting line
Page 5 of 14
TYPES OF QUEUING CHARACTERISTICS.
1. M/M/1
probability distribution referred to as the Poisson distribution. This special type of random
a) Arrivals are completely independent of each other or the state of the system.
b) The probability of a given arrival during a specific time period does not depend on
when the time period occurs but rather only in the length of the interval. Such
As with random arrivals, the occurrence of random service times that are memoryless is a fairly
common event in the waiting line situations. The random service times are described by the
Page 6 of 14
Let λ represents the average arrival rates.
It is assumed that 𝜆 < µ otherwise the average arrivals will outnumber the average number
being served and the units waiting will become infinitely large.
𝜆
If we let 𝜌 = 𝜇; ρ (utilization factor) is the average fraction of time that the system is busy. Busy
ρ can be interpreted as the average number of units being served at any point in time.
𝜆
𝑃𝑤 = 𝜌 =
𝜇
This means that the probability that the system is idle is;
𝑃𝑜 = 1 – 𝑃𝑤
𝜆
= 1−
𝜇
Therefore;
𝑃𝑛 = 𝑃𝑜 𝑋 𝜌𝑛
𝜆 𝑛
= 𝑃𝑜 𝑋 ( ) 𝑤ℎ𝑒𝑟𝑒 𝑛 > 0.
𝜇
Page 7 of 14
We can therefore compute the average number of units in the system either waiting or being
served.
𝐿 = ∑ 𝑛𝑃𝑛
𝑛=0
𝛼
𝜆 𝑛
𝐿 = ∑ 𝑛𝑃𝑜 𝑋 { }
𝜇
𝑛=0
𝜆
𝐿=[ ]
𝜇−𝜆
Recall that ρ represents the average number of units being served at any one time and therefore
𝐿 = 𝐿𝑞 + 𝜌
𝐿𝑞 = 𝐿 – 𝜌
𝜆 𝜆
= −
𝜇−𝜆 𝜇
𝜇𝜆 − 𝜇𝜆 + 𝜆2
=
𝜇(𝜇 − 𝜆)
Page 8 of 14
𝝀𝟐
=
𝝁(𝝁 − 𝝀)
Let 𝑊 represent the average time that a unit takes in the system.
𝐿
𝑊 =
𝜆
𝜆
=
𝜇−𝜆
𝜆 1
= ×
𝜇−𝜆 𝜆
1
=
𝜇−𝜆
Similarly the expected/average time a unit has to wait for service is given by;
𝐿𝑞
𝑊𝑞 =
𝜆
𝜆2 1
𝑊𝑞 = 𝑋
𝜇(𝜇 − 𝜆) 𝜆
𝜆
=
𝜇(𝜇 − 𝜆)
OR
Page 9 of 14
𝑊 = 𝑊𝑞 + 𝑠𝑒𝑟𝑣𝑖𝑐𝑒 𝑡𝑖𝑚𝑒
1
𝑊 = 𝑊𝑞 +
𝜇
1
𝑊𝑞 = 𝑊 −
𝜇
1 1
= –
𝜇−𝜆 𝜇
𝜇−𝜇+𝜆
=
𝜇(𝜇 − 𝜆)
𝜆
=
𝜇(𝜇 − 𝜆)
Example:
Pw = λ/ u = 2/3
How many units are expected in the system at any particular time?
𝜆
𝐿 =
𝜇−𝜆
20
30 − 20
20
=
10
= 2 𝑢𝑛𝑖𝑡𝑠
Page 10 of 14
How many units are waiting to be served?
Solution:
20
𝑁𝑢𝑚𝑏𝑒𝑟 𝑏𝑒𝑖𝑛𝑔 𝑠𝑒𝑟𝑣𝑒𝑑 =
30
2
=
3
2
𝑇ℎ𝑒𝑟𝑒𝑓𝑜𝑟𝑒; 2 −
3
𝟏
= 𝟏
𝟑
𝜆
𝑏𝑢𝑡; 𝐿 =
𝜇−𝜆
𝑎𝑙𝑡𝑒𝑟𝑛𝑎𝑡𝑖𝑣𝑒𝑙𝑦;
𝜆2
𝐿𝑞 =
𝜇(𝜇 − 𝜆)
400
=
30(30 − 20)
1
1
3
𝐿
𝑊=
𝜆
Page 11 of 14
2
=
20
1
= ℎ𝑟𝑠
10
1
𝑜𝑟 × 60 = 6 𝑚𝑖𝑛𝑠
10
1 1
𝑆𝑒𝑟𝑣𝑖𝑐𝑒 𝑡𝑖𝑚𝑒 = ℎ𝑟𝑠 𝑜𝑟 2𝑚𝑖𝑛𝑠
𝜇 30
2. M/M/S
The model that assumes random arrivals and random service times with multiple service
facilities has the same assumptions as the single service facility M/M/1 expect that now there is a
single input line feeding multiple service facilities with equal service rates.
The calculations of the M/M/S characteristics are a bit more complicated than in the previous
model; however we are primarily interested in the implications of these characteristics rather
than the formulas necessary and calculate them. In the M/M/S model if μ is the average service
rate for each of the 𝑺 service facilities then we require that 𝝁𝑺 > 𝜆 to avoid an infinite build up
of waiting lines.
In this model the key characteristics that will be used to make all other calculations is the
probability that the system is busy. A busy system is one that has 𝑺 or more units in the
system.
In that case all service facilities will be in use and so the system is said to be busy.
Page 12 of 14
𝑃{𝐵𝑢𝑠𝑦 𝑠𝑦𝑠𝑡𝑒𝑚} = 𝑃{𝑛 ≥ 𝑆}
Given by;
𝜌 𝑠 (𝜇𝑆)
𝑃{𝐵𝑢𝑠𝑦 𝑠𝑦𝑠𝑡𝑒𝑚} = 𝑋𝑃
𝑆! (𝜇𝑆 − 𝜆) 0
𝑠−1
1 𝜆 𝑛 1 𝜆 𝑠 𝜇𝑆
𝑊ℎ𝑒𝑟𝑒 𝑃0 = 1 ÷ {∑ ( ) + ( ) ( )}
𝑛! 𝜇 𝑆! 𝜇 𝜇𝑆 − 𝜆
𝑛=0
Rather than having the above calculation for 𝑷𝒐 , a table has been developed that provides the 𝑷𝒐
values of 𝜌 and 𝑺.
We may now use the system characteristic (𝑃 = 𝑏𝑢𝑠𝑦 𝑠𝑦𝑠𝑡𝑒𝑚) to calculate all other system
characteristics.
𝜌
𝐿 = 𝑃 (𝑏𝑢𝑠𝑦 𝑠𝑦𝑠𝑡𝑒𝑚) + 𝜌
𝑆−𝜌
Therefore,
𝜌
𝐿𝑞 = 𝑃 ( 𝑏𝑢𝑠𝑦 𝑠𝑦𝑠𝑡𝑒𝑚)
𝑆−𝜌
Page 13 of 14
The waiting times are similarly computed as:
𝐿
𝑊=
𝜆
𝐿𝑞
𝑊𝑞 =
𝜆
Example
Assume that there are 𝑆 service facilities with an average service rate 𝜇 = 6/ℎ𝑟 and
𝜆
𝜌 =
𝜇
24
= = 4
6
𝜌𝑆 𝑋 𝜇 𝑆
= 𝑃
𝑆! (𝜇𝑆 − 𝜆) 𝑜
𝑃𝑜 = 0.013
45 𝑋 30
𝑃(𝑏𝑢𝑠𝑦 𝑠𝑦𝑠𝑡𝑒𝑚) =
5! (30 − 24)
45 𝑋30
= 𝑋 0.013
5! 6
Page 14 of 14