Queueing Theory - Slides
Queueing Theory - Slides
1
2
3
4
Some more examples
5
6
7
8
9
What causes Queues?
#. Of Baristas
1 2 3 4
Average wating time 7 4 3 2
A barista is an espresso machine “coffee artist” who has extensive knowledge about coffee and
prepares, decorates and serves drinks to the customer. Barista (m/f) is the Italian word for
barkeeper.
12
What do we need to model a Queue?
• Arrival Rate
• Service Rate
• # of servers
• Maximum Queue length
• Population size
Types of Queues
• Single Server : Single Phase (McDonald’s / ATMs etc.)
• Single Server : Multiphase (Subway / Chipotle)
• Multiple Server : Single Phase (Chick-fil-A / Chick King)
• Multiple Server : Multiphase (Laundromat Washing m/cs)
Queueing Assumptions
• First In First Out (FIFO)
• No Bulking or Reneging
• Arrivals are Independent
• Service times are Independent
• Service systems operate under steady ongoing conditions, Arrival and Service rates
remain stable
13
Single Server : Singlephase Single Server : Multiphase
14
15
16
17
18
19
Kendall's Notation is a system of notation according to which the various characteristics
of a queuing model are identified. probability distribution of the interarrival time.
probability distribution of the service time. number of servers in the system.
Kendall (Kendall, 1951) has introduced a set of notations which have become standard
in the literature of queuing models. A general queuing system is denoted by (a/b/c):
(d/e/f) where
a|b|c : d|e|f }
20
Grocery Store
21
22
Traffic Intensity
It is the ratio of average arrival rate to the average service rate
ρ=
Where arrival rate
service rate
s no of servers
i) ρ < 1, customer will be serviced faster than the arrival rate
ii) ρ = 1, customer will be arriving as faster as they can be
serviced
iii) ρ > 1, customer will be arriving faster than they can be
serviced as such as the queue will go on building up
23
24
25
26
27
28
29
Model – 1 (Single Server Queuing model)
Probability that there is no one in the system (no one in the queue and no one being served)
Po = 1-ρ = 1 -
µ
Probability that the customer will have to wait in the queue (Probability of service facility being busy)
Pw = 1- Po = 1- (1- ) =
µ µ
Probability that there are n customers in the queue system is given by
Pn = (1 - ) ( )n
µ µ
Average (Expected) number of customers in the queue, also called queue length
Lq =
µ(µ )
Average (Expected) number of customers in the system, also called system length
Ls =
µ
Average waiting time in the queue is given by
Wq =
µ(µ )
Average time in system is given by
Ws =
µ
Probability that the number of customers in the system is greater than or equal to k.
P(n> k) = ( )k
µ
P(n> k) = ( )k+1
µ
30
Question 1
Service rate is 4min/workmen and arrival rate is 20 workers per
100 minutes. Determine a) Lq b) Wq c) Po
Lq =
µ(µ )
Solution:
Arrival rate( ) = (20/100) * 60 = 12 Wq =
µ(µ )
Service Rate( ) = (1/4) * 60 = 15
a) Lq = 3.2 Po = 1-ρ = 1 -
µ
b) Wq = 0.26
c) Po = 1 - = 0.2 = 20%
µ
31
Question 2
The service counter is operated one shift per day of 8 hrs. Service rate is 40 minutes per customer and
arrival rate is 80 minutes per customer. Determine a)Pw b)Lq c)Wq d) Find 𝜆 if utilisation rate is
75%
Solution:
1 shift = 8 hrs
Arrival rate (𝜆) = 1/80*480 = 6 Pw = 1- Po = 1- (1- )
µ
Service rate (µ) = 1/40 * 480 = 12
a) Pw = 0.5 =50% =
µ
b) Lq = 0.5
Lq =
µ(µ )
c)Wq=0.083
Wq =
d) ρ =75% µ(µ )
ρ=
µ
75/100 =
𝜆=9 32
Model – 2 (Multiple Server Queuing model)
Solution:
Arrival rate( ) = 40
Service Rate( ) = (1/24) * 8*60 = 20
Number of servers (S) = 3
Po = 0.11
a) Lq = 0.88
b) Wq = 0.022
c) Ls = 2.88
d) Ws = 0.072
34
Question 2
Service rate is 9 customers per hour and arrival rate is 20 customers per hour.
Number of servers is 3. Determine a)Lq b)Wq c) Ls d)Ws
Solution:
Arrival rate( ) = 20
Service Rate( ) = 9
Number of servers (S) = 3
Po = 0.078
a) Lq = 1.567
b) Wq = 0.0783
c) Ls = 3.767
d) Ws = 0.1883
35
36
37
38
39
40