Lecture-8 Queuing Theory
Lecture-8 Queuing Theory
• The basis of waiting line analysis is the trade-off between the cost of
improving service and the costs associated with making customers wait.
𝐶𝑢𝑠𝑡𝑜𝑚𝑒𝑟 𝐶𝑢𝑠𝑡𝑜𝑚𝑒𝑟
𝐴𝑟𝑟𝑖𝑣𝑒𝑠 ... 𝐿𝑒𝑎𝑣𝑒𝑠
𝑊𝑎𝑖𝑡𝑖𝑛𝑔 𝐿𝑖𝑛𝑒 𝑆𝑒𝑟𝑣𝑒𝑟
𝐶𝑢𝑠𝑡𝑜𝑚𝑒𝑟
𝑆𝑒𝑟𝑣𝑒𝑟 1 𝐿𝑒𝑎𝑣𝑒𝑠
𝐶𝑢𝑠𝑡𝑜𝑚𝑒𝑟 𝐶𝑢𝑠𝑡𝑜𝑚𝑒𝑟
𝐴𝑟𝑟𝑖𝑣𝑒𝑠 ...
𝑊𝑎𝑖𝑡𝑖𝑛𝑔 𝐿𝑖𝑛𝑒 𝑆𝑒𝑟𝑣𝑒𝑟 2 𝐿𝑒𝑎𝑣𝑒𝑠
𝐶𝑢𝑠𝑡𝑜𝑚𝑒𝑟
𝑆𝑒𝑟𝑣𝑒𝑟 3 𝐿𝑒𝑎𝑣𝑒𝑠
Common Queuing System Configurations
𝐶𝑢𝑠𝑡𝑜𝑚𝑒𝑟
... 𝐿𝑒𝑎𝑣𝑒𝑠
𝑊𝑎𝑖𝑡𝑖𝑛𝑔 𝐿𝑖𝑛𝑒 𝑆𝑒𝑟𝑣𝑒𝑟 1
𝐶𝑢𝑠𝑡𝑜𝑚𝑒𝑟 𝐶𝑢𝑠𝑡𝑜𝑚𝑒𝑟
𝐴𝑟𝑟𝑖𝑣𝑒𝑠 ... 𝐿𝑒𝑎𝑣𝑒𝑠
𝑊𝑎𝑖𝑡𝑖𝑛𝑔 𝐿𝑖𝑛𝑒 𝑆𝑒𝑟𝑣𝑒𝑟 2
... 𝐶𝑢𝑠𝑡𝑜𝑚𝑒𝑟
𝐿𝑒𝑎𝑣𝑒𝑠
𝑊𝑎𝑖𝑡𝑖𝑛𝑔 𝐿𝑖𝑛𝑒 𝑆𝑒𝑟𝑣𝑒𝑟 3
Characteristics of Queuing Systems
• The Arrival Process
• Arrival rate - the manner in which customers arrive at the system for
service.
• Arrivals are often described by a Poisson random variable:
𝜆𝑥 𝑒 −𝜆
𝑃 𝑥 = , 𝑓𝑜𝑟 𝑥 = 0,1,2, …
𝑥!
where 𝜆 is the arrival rate (e.g., calls arrive at a rate of 5 per hour)
Characteristics of Queuing Systems:
P0 1
(1 - 24/30)
Lq 2
24 2 /[30 30 − 24 = 3.2
W 1 L 1/[30 -24]
0.167 hour (10 min) avg time in the system per customer
Wq 24/[30(30 -24)]
0.133 hour (8 min) avg time in the waiting line
U
24/30
.80 probability server busy, 0.20 probability server will be idle
Single Server Waiting Line System
• Effect of Operating Characteristics
• Manager wishes to test several 𝑎𝑙𝑡𝑒𝑟𝑛𝑎𝑡𝑖𝑣𝑒𝑠 for reducing customer waiting
time:
• 𝐴𝑑𝑑𝑖𝑡𝑖𝑜𝑛 𝑜𝑓 𝑎𝑛𝑜𝑡ℎ𝑒𝑟 𝑒𝑚𝑝𝑙𝑜𝑦𝑒𝑒 𝑡𝑜 𝑝𝑎𝑐𝑘 𝑢𝑝 𝑝𝑢𝑟𝑐ℎ𝑎𝑠𝑒𝑠
• 𝐴𝑑𝑑𝑖𝑡𝑖𝑜𝑛 𝑜𝑓 𝑎𝑛𝑜𝑡ℎ𝑒𝑟 𝑐ℎ𝑒𝑐𝑘𝑜𝑢𝑡 𝑐𝑜𝑢𝑛𝑡𝑒𝑟.
• 𝐴𝑙𝑡𝑒𝑟𝑛𝑎𝑡𝑖𝑣𝑒 1:
• Addition of an employee (raises service rate from 𝜇 = 30 𝑡𝑜 𝜇 = 40 customers per
hour).
• Cost $150 per week, avoids loss of $75 per week for each minute of reduced customer
waiting time.
Single Server Waiting Line System
• Effect of Operating Characteristics
• Manager wishes to test several 𝑎𝑙𝑡𝑒𝑟𝑛𝑎𝑡𝑖𝑣𝑒𝑠 for reducing customer waiting
time:
• 𝐴𝑑𝑑𝑖𝑡𝑖𝑜𝑛 𝑜𝑓 𝑎𝑛𝑜𝑡ℎ𝑒𝑟 𝑒𝑚𝑝𝑙𝑜𝑦𝑒𝑒 𝑡𝑜 𝑝𝑎𝑐𝑘 𝑢𝑝 𝑝𝑢𝑟𝑐ℎ𝑎𝑠𝑒𝑠
• 𝐴𝑙𝑡𝑒𝑟𝑛𝑎𝑡𝑖𝑣𝑒 1:
• System operating characteristics with new parameters:
• 𝑃0 = 0.40 probability of no customers in the system
• 𝐿 = 1.5 customers on the average in the queuing system
Single Server Waiting Line System
• Effect of Operating Characteristics
• System operating characteristics with new parameters (continued):
• 𝐿𝑞 = 0.90 customer on the average in the waiting line
Lq
Wq
2
/
2 2
Lq
21 /
Single-Server Waiting Line System
Undefined and Constant Service Times
• 𝑄𝑢𝑒𝑢𝑖𝑛𝑔 𝑓𝑜𝑟𝑚𝑢𝑙𝑎𝑠:
W Wq
1
L Lq
U
Single-Server Waiting Line System
Undefined Service Times Example
P0 1
1 20 0.33 probability that machine not in use
30
2 2 2 2
/
2 2
20
1/15 20/30
Lq
21 / 21 20/30
3.33 employees waiting in line
Single-Server Waiting Line System
Undefined Service Times Example
• 𝑂𝑝𝑒𝑟𝑎𝑡𝑖𝑛𝑔 𝑐ℎ𝑎𝑟𝑎𝑐𝑡𝑒𝑟𝑖𝑠𝑡𝑖𝑐𝑠:
L Lq
3.33 (20/30)
4.0 employees in line and using the machine
Single-Server Waiting Line System
Undefined Service Times Example
• 𝑂𝑝𝑒𝑟𝑎𝑡𝑖𝑛𝑔 𝑐ℎ𝑎𝑟𝑎𝑐𝑡𝑒𝑟𝑖𝑠𝑡𝑖𝑐𝑠
Lq 3.33
Wq 0.1665 hour 10 minutes waiting time
20
W Wq
1 0.1665 1 0.1998 hour
30
12 minutes in the system
U
30
20 67% machine utilization
Single-Server Waiting Line System
Constant Service Times Formulas
• In the constant service time model there is no variability in service times; 𝜎 = 0
• Substituting 𝜎 = 0 into equations:
2 2 2
/ 0 /
2 2 2 2
/
2
Lq
21 / 21 / 21 / 2
Lq 2
2 ( )
(10) 2
1.14 cars waiting
2(13.3)(13.3 10)
Lq 1.14
Wq
10
0.114 hour or 6.84 minutes waiting time
Finite Queue Length
• In a finite queue, the length of the queue is limited.
• Operating characteristics, where 𝑀 is the maximum number in the system:
P0 1 /
1 ( / )M 1
n
Pn (P )
0
for n M
/ ( M 1)( / ) M 1
L
1 / 1 ( / )M 1
Lq L (1PM )
Finite Queue Length
• In a finite queue, the length of the queue is limited.
• Operating characteristics, where 𝑀 is the maximum number in the system:
W L
(1 PM )
Wq W 1
Finite Queue Length Example
Metro Quick Lube single bay service; space for one vehicle in service and three
waiting for service; mean time between arrivals of customers is 3 minutes; mean
service time is 2 minutes; both inter-arrival times and service times are
exponentially distributed; maximum number of vehicles in the system equals 4.
P0 1 /
1 ( / )M 1
1 20/30 0.38 probability that system is empty
1 (20/30)5
nM
PM (P )
0
4
(.38) 20 0.076 probability that system is full
30
Finite Queue Length Example
• 𝐴𝑣𝑒𝑟𝑎𝑔𝑒 𝑞𝑢𝑒𝑢𝑒 𝑙𝑒𝑛𝑔𝑡ℎ𝑠 𝑎𝑛𝑑 𝑤𝑎𝑖𝑡𝑖𝑛𝑔 𝑡𝑖𝑚𝑒𝑠:
M 1
L / (M 1)( / )
1 / 1 ( / )M 1
5
L 20/30 (5)(20/30) 1.24 cars in the system
1 20/30 1 (20/30)5
Lq L (1
PM ) 1.24 20(1.076) 0.62 cars waiting
30
Wq W
1 0.067 1 0.033 hour waiting in line
30
Finite Calling Population
• In a finite calling population there is a limited number of potential customers that
can call on the system.
Lq N
(1 P )
0
L Lq (1 P0 )
Lq
Wq
( N L)
W Wq 1
Finite Calling Population Example
• Wheelco Manufacturing Company has 20 machines, each machine operates at an
average of 200 hours before breaking down; average time to repair is 3.6 hours;
breakdown rate is 𝑃𝑜𝑖𝑠𝑠𝑜𝑛 𝑑𝑖𝑠𝑡𝑟𝑖𝑏𝑢𝑡𝑒𝑑, service time is 𝑒𝑥𝑝𝑜𝑛𝑒𝑛𝑡𝑖𝑎𝑙𝑙𝑦 𝑑𝑖𝑠𝑡𝑟𝑖𝑏𝑢𝑡𝑒𝑑.
The company has one senior repair person and an assistant.
• They repair the machines in the same order in which they break (𝑎 𝑓𝑖𝑟𝑠𝑡 − 𝑖𝑛, 𝑓𝑖𝑟𝑠𝑡 −
𝑜𝑢𝑡 𝑞𝑢𝑒𝑢𝑒 𝑑𝑖𝑠𝑐𝑖𝑝𝑙𝑖𝑛𝑒)
• The company would like an analysis of machine idle time due to breakdowns to
determine 𝑤ℎ𝑒𝑡ℎ𝑒𝑟 𝑡ℎ𝑒 𝑝𝑟𝑒𝑠𝑒𝑛𝑡 𝑟𝑒𝑝𝑎𝑖𝑟 𝑠𝑡𝑎𝑓𝑓 𝑖𝑠 𝑠𝑢𝑓𝑓𝑖𝑐𝑖𝑒𝑛𝑡?
Finite Calling Population Example
𝑁 = 20 𝑚𝑎𝑐ℎ𝑖𝑛𝑒𝑠
Finite Calling Population Example
• 𝑂𝑝𝑒𝑟𝑎𝑡𝑖𝑛𝑔 𝑐ℎ𝑎𝑟𝑎𝑐𝑡𝑒𝑟𝑖𝑠𝑡𝑖𝑐𝑠
P0 1
n 0.652
20 20!
.005
(20 n)! .2778
n0
− = the service rate (average number served per time period) per
server (channel)
− c = number of servers
− c = mean effective service rate for the system (must exceed arrival
rate)
Multiple-Server Waiting Line Queuing
Formulas
P0 1 probability no customers in system
nc1 1 n
c
c
n! c! c
1
n0
n
Pn 1 P for n c
c!cnc 0
n
Pn 1n
L ( / )c
P0 average customers in the system
(c 1)!(c ) 2
Lq L
average number of customers in the queue
Lq
Wq W average time customer is in the queue
1
c
Pw 1
c P probability customer must wait for service
c! c 0
Multiple-Server Waiting Line at a
Department Store Example
• Data:
• = 10,
• = 4,
•𝑐 = 3
Multiple-Server Waiting Line Biggs
Department Store Example
P0 1
0
1
2
3 3(4)
1 10 1 10 1 10 1 10
0! 4 1! 4 2! 4 3! 4 3(4) 10
W q 3 .5
10
0.35 hour average waiting time in line per customer
3 3(4)
Pw 1 10
(.045)
3! 4 3(4) 10
• 𝑊𝑞 = / (𝑢 − 𝜆) = 4 / 5(5 − 4) =
• 𝑃𝑤 = / = 4 / 5 =
.80 𝑝𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 𝑡ℎ𝑒 𝑛𝑒𝑤 𝑎𝑐𝑐𝑜𝑢𝑛𝑡𝑠 𝑜𝑓𝑓𝑖𝑐𝑒𝑟 𝑖𝑠 𝑏𝑢𝑠𝑦 𝑎𝑛𝑑 𝑎 𝑐𝑢𝑠𝑡𝑜𝑚𝑒𝑟 𝑚𝑢𝑠𝑡 𝑤𝑎𝑖𝑡
Example Problem Solution
Step 2:
Determine the Operating Characteristics for the Multiple Server System
• c = 2 servers
Example Problem Solution
P0 1
n c 1
n
c c
1
1
n! c! c
n0
L ( / )c
P0
(c 1)!(c )2