07 Queuing Models
07 Queuing Models
SESSION 7
QUANTITATIVE METHODS
Principal Actors
• The Customer
• The Server
Basic Elements
1. Arrivals Distribution (single or bulk arrivals)
2. Service-time Distribution (single or bulk service)
3. Design of service facility (series (tandem), parallel, or network
stations)
Basic Elements
4. Service discipline (FCFS, LCFS, SIRO) and service priority
◼ FCFS: First Come, First Served
◼ LCFS: Last Come, First Served
◼ SIRO: Service In Random Order
5. Queue size (finite or infinite)
Basic Elements
6. Calling Source (finite or infinite)
◼ The population from which the customers come
7. Human behavior (jockeying, balking (refusing), and reneging
(leaving), but not cheating)
Poisson and Exponential Distributions
(𝜇𝑡)𝑁−𝑛 𝑒 −𝜇𝑡
• 𝑝𝑛 𝑡 = , 𝑛 = 1, 2, … 𝑁
(𝑁 −𝑛)!
• 𝑝0 𝑡 = 1 − σ𝑁
𝑛=1 𝑝𝑛 (𝑡)
Example • At the beginning of each week 15 units of an
inventory item are stocked for use during the week
• Withdrawals from stock occur only during the first 6
days (business is closed on Sundays) t = 6
• Withdrawals follows Poisson distribution with mean
= 3 units/day
• When the stock level reaches = 5 units, a new order of
15 units is placed for delivery at the beginning of the
next week N = 5; n = 5
• Because of the nature of the items, all units left at the
end of the week are discarded
• What is the Probability of having 5 unit (the reorder level
stock) on day t
• μ = 3 units/day
(𝜇𝑡)𝑁−𝑛 𝑒 −𝜇𝑡
• 𝑝𝑛 𝑡 = , 𝑛 = 1, 2, … 𝑁
(𝑁 −𝑛)!
(3)10 𝑒 −3
• 𝑝5 1 = = 0.0008101… = 0.0008
10!
(6)10 𝑒 −6
• 𝑝5 2 = = 0.0413030… = 0.0413
10!
(9)10 𝑒 −9
• 𝑝5 3 = = 0.0118580… = 0.1186
10!
• What is the Probability of having 5 unit (the reorder level
stock) on day t
• μ = 3 units/day
(𝜇𝑡)𝑁−𝑛 𝑒 −𝜇𝑡
• 𝑝𝑛 𝑡 = , 𝑛 = 1, 2, … 𝑁
(𝑁 −𝑛)!
(12)10 𝑒 −12
• 𝑝5 4 = = 0.10483… = 0.1048
10!
(1)10 𝑒 −10
• 𝑝1 5 = = 0.048610… = 0.0486
1!
(18)10 𝑒 −18
• 𝑝5 6 = = 0.014985… = 0.0150
10!
The peak
t (days) 1 2 3 4 5 6
μt 3 6 9 12 15 18
p5(t) 0.0008 0.0413 0.1186 0.1048 0.0486 0.0150
Using Excel:
Poisson(N-n= 10; t = 3, 6, 9, 12, 15, 18)
Poisson Table (Excel)
μt
N-n
3 6 9 12 15 18
0 0.0498 0.0025 0.0001 0.0000 0.0000 0.0000
1 0.1494 0.0149 0.0011 0.0001 0.0000 0.0000
2 0.2240 0.0446 0.0050 0.0004 0.0000 0.0000
3 0.2240 0.0892 0.0150 0.0018 0.0002 0.0000
4 0.1680 0.1339 0.0337 0.0053 0.0006 0.0001
5 0.1008 0.1606 0.0607 0.0127 0.0019 0.0002
6 0.0504 0.1606 0.0911 0.0255 0.0048 0.0007
7 0.0216 0.1377 0.1171 0.0437 0.0104 0.0019
8 0.0081 0.1033 0.1318 0.0655 0.0194 0.0042
9 0.0027 0.0688 0.1318 0.0874 0.0324 0.0083
10 0.0008 0.0413 0.1186 0.1048 0.0486 0.0150
• Probability of reordering by (at the latest on) day t =
Probability for having the order level (n 5)
• For day t = 1, 2, 3, 4, 5, 6
• Compute:
pn 5(t) = p1(t) + p2(t) + p3 (t) + p4(t) + p5(t) + p6(t)
𝑝1 𝑡 = 1 − σ𝑁−𝑛−1
𝑡=0 𝑝1 (𝑡) 𝑝4 𝑡 = 1 − σ𝑁−𝑛−1
𝑡=0 𝑝4 (𝑡)
𝑝2 𝑡 = 1 − σ𝑁−𝑛−1
𝑡=0 𝑝2 (𝑡) 𝑝5 𝑡 = 1 − σ𝑁−𝑛−1
𝑡=0 𝑝5 𝑡
𝑝3 𝑡 = 1 − σ𝑁−𝑛−1
𝑡=0 𝑝3 (𝑡) 𝑝6 𝑡 = 1 − σ𝑁−𝑛−1
𝑡=0 𝑝6 (𝑡)
Check it!
t (days) 1 2 3 4 5 6
μt 3 6 9 12 15 18
p5(t) 0.0011 0.0839 0.4126 0.7576 0.9301 0.9847
Poisson Table (Excel)
μt
N-n
3 6 9 12 15 18
0 0.0498 0.0025 0.0001 0.0000 0.0000 0.0000
1 0.1494 0.0149 0.0011 0.0001 0.0000 0.0000
2 0.2240 0.0446 0.0050 0.0004 0.0000 0.0000
3 0.2240 0.0892 0.0150 0.0018 0.0002 0.0000
4 0.1680 0.1339 0.0337 0.0053 0.0006 0.0001
5 0.1008 0.1606 0.0607 0.0127 0.0019 0.0002
6 0.0504 0.1606 0.0911 0.0255 0.0048 0.0007
7 0.0216 0.1377 0.1171 0.0437 0.0104 0.0019
8 0.0081 0.1033 0.1318 0.0655 0.0194 0.0042
9 0.0027 0.0688 0.1318 0.0874 0.0324 0.0083
SUM 0.9989 0.9161 0.5874 0.2424 0.0699 0.0154
1 - SUM 0.0011 0.0839 0.4126 0.7576 0.9301 0.9846
10 0.0008 0.0413 0.1186 0.1048 0.0486 0.0150
• Average number of inventory unit will be discarded at the
end of the week
• Compute the expected number of unit available on day 6
• With μt = 3 6 = 18
15
𝐸 𝑛 𝑡 = 6 = 𝑛𝑝𝑛 6 = 0.5544
𝑛=0
Poisson Table (Excel)
N-n p(μt = 18) n np
0 0.0000 15 0.0000
1 0.0000 14 0.0000
2 0.0000 13 0.0000
3 0.0000 12 0.0002
4 0.0001 11 0.0007
5 0.0002 10 0.0024
6 0.0007 9 0.0065
7 0.0019 8 0.0148
8 0.0042 7 0.0291
9 0.0083 6 0.0500
10 0.0150 5 0.0749
11 0.0245 4 0.0981
12 0.0368 3 0.1103
13 0.0509 2 0.1019
14 0.0655 1 0.0655
15 0.0786 0 0.0000
sum 0.5544
Queues with Combined Arrivals
and Departures
Single Server
System
Queue or Service
waiting Facility
line
Arriving Departing
x x x x x 1
Customers Customers
.
.
.
Queues with Combined Arrivals
and Departures
Serial Servers
System
Queue or Service
waiting Facility
line
Arriving Departing
Customers x x x 1 2 … c
Customers
Queues with Combined Arrivals and
Departures
Parallel Servers
System
Queue or Service
waiting line Facility
1
Arriving 2 Departing
x x x x x
Customers . Customers
.
.
c
Queues with Combined Arrivals
and Departures
Network
Servers System
Queue or Service
waiting Facility
line
…
Arriving
x x x x …
Customers
Departing
Customers
… c
Queues with Combined Arrivals and
Departures
• Number of customers are serviced by c numbers of parallel servers
• Number of customers = number of customers in queue + number of customers in
service
Generalized Poisson Model
n-1 n
μn μn+1
Generalized Poisson Model
• pn: the steady-state probability of n customers in a system
• n: arrival rate
• μn : departure rate
Generalized Poisson Model
𝜆𝑛−1 𝜆𝑛−2 . . . 𝜆0
𝑝𝑛 = 𝑝0 , n = 1,2, . . .
𝜇𝑛 𝜇𝑛−1 . . . 𝜇0
𝑝0 = 𝑝𝑛 = 1
𝑛=0
Example
• A single server queuing with constant arrival
rate n = 3 arrivals per hour and departure rate
μn = 8 departures per hour for all n 0
𝑛 𝑛
𝜆 3
𝑝𝑛 = 𝑝0 = 𝑝0 = 0.375𝑛 𝑝0, 𝑛=0,1,2,…
𝜇 8
∞
𝑝0 = 𝑝𝑛 = 1
𝑛=0
1
𝑝0 =1 Geometric Series
1 − 0.375
𝑝0 = 0.625
𝑝𝑛 = 0.375𝑛 𝑝0 , 𝑛 = 1,2, …
Multiplication & Summation (Excel)
0.375
p0 0.625
n 0.375^n (0.375^n)*p
0 1 0.6250
1 0.3750 0.2344
2 0.1406 0.0879
3 0.0527 0.0330
4 0.0198 0.0124
5 0.0074 0.0046
6 0.0028 0.0017
7 0.0010 0.0007
8 0.0004 0.0002
9 0.0001 0.0001
10 0.0001 0.0000
11 0.0000 0.0000
sum 1
Steady-State Measures of Performance
• Ls: expected number of customers in system
• Lq: expected number of customers in queue
• Ws: expected waiting time in system
• Wq: expected waiting time in queue
• 𝑐ҧ ∶ utilization (of number of server)
• : departure rate
• : arrival rate
Steady-State Measures of
Performance
∞
𝐿𝑠
𝑝𝑛 𝐿𝑠 = 𝑛𝑝𝑛 𝑊𝑠 =
𝜆eff
𝑛=0
1
𝑊𝑞 = 𝑊𝑠 − 𝐿𝑞 = 𝜆eff 𝑊𝑞 𝑐lj = 𝐿𝑠 − 𝐿𝑞
𝜇
𝐿𝑠 = σ∞
𝑛=0 𝑛𝑝𝑛 = 0 × 0.6250 + 1 × 0.2344 + 2 × 0.0879 + ... +
0.0000 = 0.6
𝐿𝑠 0.6
𝑊𝑠 = = = 0.2
𝜆eff 3
1 1
𝑊𝑞 = 𝑊𝑠 − = 0.2 − = 0.075
𝜇 8
𝐿𝑞 = 𝜆eff 𝑊𝑞 = 3 × 0.075 = 0.225
Single server, c = 1
𝑐lj = 𝐿𝑠 − 𝐿𝑞 = 0.6 − 0.225 = 0.375
clj
percent utilization = × 100 % = 0.375 × 100 = 37.5 (%)
c
Multiplication & Summation (Excel)
n pn n*pn
0 0.6250 0.0000
1 0.2344 0.2344
2 0.0879 0.1758
3 0.0330 0.0989
4 0.0124 0.0494
5 0.0046 0.0232
6 0.0017 0.0104
7 0.0007 0.0046
8 0.0002 0.0020
9 0.0001 0.0008
10 0.0000 0.0003
11 0.0000 0.0001
Sum = Ls 0.5999
0.6
Specialized Poisson Queues
System
Station Station
Input Output
1 2
Tandem or Series Queues
2. k-station Series Model with Infinite Queue Capacity
1 2 k
1 2 k
. . .
. . .
Input . . . Output
c1 c2 ck