Professional Documents
Culture Documents
Learning Objectives
By the end of this module, the students are expected to:
1. Identify the appropriate queuing model for a particular situation.
2. Evaluate the performance of a queuing system using different metrics.
3. Use a spreadsheet template to easily compute queuing-related
performance measures.
customers
in service
queue
arriving
customer service facility
system boundary
customer server
University of the Philippines
QUEUING THEORY
Kendall-Lee Notation
A six-element classification system for queuing systems using the notation:
A S s D K N
_____ / _____ / _____ / _____ / _____ / _____
Examples:
1. M / M / 2 / FCFS / 20 / 20
2. D / M / 1 / FCFS / ∞ / ∞
3. G / G / 2 / LCFS / 100 / ∞
A S s D K N
_____ / _____ / _____ / _____ / _____ / _____
A: Arrival (Input) Process. The arrival pattern of arriving customers. Let λ be
the arrival rate of customers.
M – Markovian (exponential)
Ek – Erlang
D – constant (degenerate)
G – general
S: Service (Output ) Process. The service time distribution. Let µ be the
service rate of each server.
M – Markovian
Ek – Erlang
D – constant (degenerate)
G – general
s: Servers. The number of servers in a service facility.
University of the Philippines
QUEUING THEORY
Kendall-Lee Notation
A S s D K N
_____ / _____ / _____ / _____ / _____ / _____
D: Queuing Discipline. Determines which customer will be served next.
FSFC – first come, first served
LCFS – last come, first served
SIRO – service in random order
GD – general discipline
K: System Capacity. The maximum number of customers that are allowed to
enter the system.
N: Input Source / Calling Population. The number of customers that may
enter the system.
Degenerate
Normal
Erlang
Exponential
M/D/1/FCFS/∞/∞ or M/D/1
M/G/2/FCFS/12/12
4. Students return books to the library at a rate of 6 books per hour. The
borrower’s section librarian returns the books, one at a time, to their
respective bookshelves. This takes an erlang distributed time per book.
Since a newly-returned book is placed on top of the pile, it is the first
one to be given attention by the librarian.
M/Ek/1/LCFS/∞/∞
University of the Philippines
QUEUING THEORY
Performance Measure of Queuing Systems
▪ Ls. Average number of customers being served.
▪ Lq. Average length of customers in the line (queue).
▪ L = Ls + Lq. Average number of customers in the system
▪ Ws. Average service time of a customer.
▪ Wq. Average waiting time of customer in the line (queue).
▪ W = Ws + Wq. Average waiting time of customer in the system.
▪ Probability of Balking. Balking happens when a customer cannot (or
refuses to) enter the line because it is either full or too long.
▪ Server Utilization. The proportion of time that a given server is busy as it
attends to customers.
Steady State
(reported values)
Transient Period
(not reported)
𝐿 = 𝑛𝑃𝑛
𝑛
𝐿𝑞 = ൫𝑛 − 𝑠)𝑃𝑛
𝑛>𝑠
𝐿 = 𝜆𝑎𝑣𝑒 𝑊
L = λaveW
L W
L = Lq + λ/µ W = Wq + 1/µ
Lq = λaveWq
Lq Wq
𝜆 = 60 𝑐𝑢𝑠𝑡𝑜𝑚𝑒𝑟𝑠/ℎ𝑟 μ = 24 𝑐𝑢𝑠𝑡𝑜𝑚𝑒𝑟𝑠/ℎ𝑟
𝑊𝑞 = 1.5 𝑚𝑖𝑛𝑠
1 1
𝑊𝑠 = = = 0.042 ℎ𝑟 = 2.5 𝑚𝑖𝑛𝑠
𝜇 24
1.5
𝑊 = 𝑊𝑞 + 𝑊𝑠 = + 0.042 = 0.067 ℎ𝑟 = 4 𝑚𝑖𝑛𝑠
60
𝐿 = 𝜆𝑎𝑣𝑒 𝑊 = 60 0.067 = 𝟒 𝒄𝒖𝒔𝒕𝒐𝒎𝒆𝒓𝒔
λ0 λ1 λ2 λ3 λ4 λ5
0 1 2 3 4 5 ...
µ1 µ2 µ3 µ4 µ5 µ6
0 1 2 3 4 5 ...
µ1 µ2 µ3 µ4 µ5 µ6
−1
𝜆0𝜆0 𝜆0𝜆𝜆01𝜆1 𝜆𝜆00𝜆𝜆11𝜆𝜆22 𝜆𝜆00𝜆𝜆11𝜆𝜆22𝜆𝜆33 𝜆𝜆00𝜆𝜆11𝜆𝜆22𝜆𝜆33𝜆𝜆44
𝑃0 = 1 +
1 + ++ +
+ + +
+ +…
+ …
𝜇1𝜇1 𝜇1𝜇𝜇1 𝜇
2 2 𝜇𝜇1𝜇𝜇2
1 2 3𝜇𝜇3 𝜇
𝜇 1𝜇𝜇2𝜇𝜇
1 2 3 4 3𝜇𝜇 4 𝜇
𝜇 1𝜇𝜇2𝜇𝜇 3
1 2 3 4 5𝜇𝜇 4𝜇𝜇 5
𝜆0 𝜆0 𝜆1 𝜆2 𝜆3 𝜆3
𝑃1 = 𝑃0 𝑃4 = 𝑃 = 𝑃
𝜇1 𝜇1 𝜇2 𝜇3 𝜇4 0 𝜇4 3
𝜆0 𝜆1 𝜆1 𝜆0 𝜆1 𝜆2 𝜆3 𝜆4 𝜆4
𝑃2 = 𝑃0 = 𝑃1 𝑃5 = 𝑃0 = 𝑃4
𝜇1 𝜇2 𝜇2 𝜇1 𝜇2 𝜇3 𝜇4 𝜇5 𝜇5
𝜆0 𝜆1 𝜆2 𝜆2
𝑃3 = 𝑃0 = 𝑃2
𝜇1 𝜇2 𝜇3 𝜇3
0 1 2 3 4 5
𝜆0 5 𝜆3 5
𝑃1 = 𝑃0 = 0.249 = 0.311 𝑃4 = 𝑃3 = 0.122 = 0.076
𝜇1 4 𝜇4 8
𝜆1 5 𝜆4 5
𝑃2 = 𝑃1 = 0.311 = 0.195 𝑃5 = 𝑃4 = 0.076 = 0.048
𝜇2 8 𝜇5 8
𝜆2 5
𝑃3 = 𝑃2 = 0.195 = 0.122
𝜇3 8
University of the Philippines
QUEUING MODELS
M/M/1
λ λ λ λ
0 1 2 3 . . .
μ μ μ μ
𝜆
𝜌= <1 𝑃0 = 1 − 𝜌 𝑃𝑛 = 𝜌𝑛 (1 − 𝜌)
𝜇
𝜌 𝜆 𝜌2 𝜆2
𝐿= = 𝐿𝑞 = =
1−𝜌 𝜇− 𝜆 1−𝜌 𝜇(𝜇 − 𝜆)
𝜌 1 𝜌2 𝜆
𝑊= = 𝑊𝑞 = =
𝜆(1 − 𝜌) 𝜇− 𝜆 𝜆(1 − 𝜌) 𝜇(𝜇 − 𝜆)
𝑃 Wq > 𝑡 = 𝜌𝑒 −𝜇 1−𝜌 𝑡
Note: Wq is the waiting time of customer in queue. Wq is the average waiting time of
customer in queue or E(Wq ).
University of the Philippines
QUEUING MODELS
M/M/1
A regional airport has a single runway. Airplanes requiring the use of the
runway arrive at a Poisson rate of 12 per hour. Each plane uses the runway
for an exponential time with mean of 4 mins.
a. Find the average waiting time of airplanes before they can use the
runway.
b. What is the utilization of the runway?
c. Compute the average number of airplanes currently using or waiting to
use the runway.
d. Find the probability that an airplane does not need to queue to use the
runway.
e. What is the probability that an airplane needs to wait for more than 6
mins before it can use the runway?
0 1 2 3 4 5 ...
𝜆 12
𝑊𝑞 = = = 𝟎. 𝟐𝟔𝟔𝟕 𝒉𝒓 = 𝟏𝟔 𝒎𝒊𝒏𝒔
𝜇(𝜇 − 𝜆) 15(15 − 12)
𝜆 12
𝜌= = = 𝟎. 𝟖𝟎
𝜇 15
𝑃0 = 1 − 𝜌 = 1 − 0.80 = 𝟎. 𝟐𝟎
e. What is the probability that an airplane needs to wait for more than 6
mins before it can use the runway?
6
−15 1−0.80 (60)
𝑃 Wq > 𝑡 = 𝜌𝑒 −𝜇 1−𝜌 𝑡 = 0.80𝑒 = 𝟎. 𝟓𝟗𝟑
0 1 2 3 4 5 ...
𝜆 20
𝐿= = = 𝟓 𝒄𝒖𝒔𝒕𝒐𝒎𝒆𝒓𝒔
𝜇 − 𝜆 20 − 24
b. Find the probability that there are at most 4 customers in the lane.
4 4 4 𝑛
20 20
𝑃𝑛 = 𝜌𝑛 (1 − 𝜌) = 1− = 𝟎. 𝟓𝟗𝟖
24 24
𝑛=0 𝑛=0 𝑛=0
1 1
𝑊= = = 0.25 ℎ𝑟 = 𝟏𝟓 𝒎𝒊𝒏𝒔
𝜇 − 𝜆 24 − 20
e. Buying a POS machine will help reduce average transaction time to only
2 mins (20% reduction) with the aid of a barcode reader – eliminating
the need to type item codes manually. If implemented, find the percent
reduction in the average time a customer spends in the cashier.
1 1
𝑊𝑛𝑒𝑤 = = = 0.10 ℎ𝑟 = 𝟔 𝒎𝒊𝒏𝒔
𝜇𝑛𝑒𝑤 − 𝜆 30 − 20
15 𝑚𝑖𝑛𝑠 − 6 𝑚𝑖𝑛𝑠
% 𝑅𝑒𝑑𝑢𝑐𝑡𝑖𝑜𝑛 = = 𝟔𝟎%
15 𝑚𝑖𝑛𝑠
0 1 2 . . . s-1 s s+1 . . .
μ 2μ 3μ (s-1)μ sμ sμ sμ
𝜆 𝜆Τ𝜇 𝑠 𝑃0 𝜆Τ𝜇 𝑛 𝑃0
𝜌= <1 𝑃 𝑛≥𝑠 = , 𝑛≤ 𝑠
𝑠𝜇 𝑠! (1 − 𝜌) 𝑛!
𝑃𝑛 = .
𝜆Τ𝜇 𝑛 𝑃0
, 𝑛≥𝑠
𝑠−1 𝜆Τ𝜇 𝑛
𝜆Τ𝜇 𝑠 −1 𝑠! 𝑠 𝑛−𝑠
𝑃0 = +
𝑛=0 𝑛! 𝑠! (1 − 𝜌)
𝑃 𝑛≥𝑠
𝑊𝑞 =
𝑃 𝑛≥𝑠 𝜌 𝑠𝜇 − 𝜆
𝐿𝑞 =
1−𝜌
𝑃 Wq > 𝑡 = 𝑃 𝑛 ≥ 𝑠 𝑒 −𝑠𝜇 1−𝜌 𝑡
0 1 2 … 14 15 16 …
𝜆 94
𝜌= = = 0.836
𝑠𝜇 15(7.5)
𝑛 −1 −1
𝑠−1 𝜆Τ𝜇 𝜆Τ𝜇 𝑠 14 94Τ7.5 𝑛
94Τ7.5 15
𝑃0 = + = +
𝑛=0 𝑛! 𝑠! (1 − 𝜌) 𝑛=0 𝑛! 15! (1 − 0.836)
= 2.96 𝑥 10−6
𝑃 𝑛≥𝑠 0.407
𝑊𝑞 = = = 𝟎. 𝟎𝟐𝟐 𝒉𝒓 = 𝟏. 𝟑𝟐𝟏 𝒎𝒊𝒏𝒔
𝑠𝜇 − 𝜆 15(7.5) − 94
c. On the average, how may calls are in the IT system (both being attended
to and put on hold).
𝑃 𝑛 ≥ 𝑠 𝜌 0.407 ∗ 0.836
𝐿𝑞 = = = 2.069 𝑐𝑎𝑙𝑙𝑠
1−𝜌 1 − 0.836
𝜆 94
𝐿 = 𝐿𝑞 + = 2.069 + = 𝟏𝟒. 𝟔𝟎𝟐 𝒄𝒂𝒍𝒍𝒔
𝜇 7.5
s Wq
15 1.321 mins
16 0.619 min
17 0.306 min
18 0.155 min
0 1 2 3 4 5 ...
𝜆 2.7
𝜌= = = 0.60
𝑠𝜇 3(1.5)
𝑛 −1 −1
𝑠−1 𝜆Τ𝜇 𝜆Τ𝜇 𝑠 2 2.7Τ1.5 𝑛 2.7Τ1.5 𝑠
𝑃0 = + = + = 0.146
𝑛=0 𝑛! 𝑠! (1 − 𝜌) 𝑛=0 𝑛! 3! (1 − 0.60)
𝑃 𝑛 ≥ 𝑠 𝜌 0.355 ∗ 0.60
𝐿𝑞 = = = 𝟎. 𝟓𝟑𝟐 𝒑𝒂𝒕𝒊𝒆𝒏𝒕𝒔
1−𝜌 1 − 0.60
𝜆 2.7
𝐿 = 𝐿𝑞 + = 0.532 + = 𝟐. 𝟑𝟑𝟐 𝒑𝒂𝒕𝒊𝒆𝒏𝒕𝒔
𝜇 1.5
𝑃 𝑛≥𝑠 0.355
𝑊𝑞 = = = 𝟎. 𝟏𝟗𝟕 𝒉𝒓 = 𝟏𝟏. 𝟖𝟐𝟓 𝒎𝒊𝒏𝒔
𝑠𝜇 − 𝜆 3(1.5) − 2.7
1 1
𝑊 = 𝑊𝑞 + = 0.197 + = 𝟎. 𝟖𝟔𝟒 𝒉𝒓 = 𝟓𝟏. 𝟖𝟐𝟓 𝒎𝒊𝒏𝒔
𝜇 1.5
𝜆2 0.92
𝐿𝑞 = = = 𝟎. 𝟗𝟎 𝒑𝒂𝒕𝒊𝒆𝒏𝒕
𝜇(𝜇 − 𝜆) 1.5(1.5 − 0.9)
𝜆 0.9
𝐿= = = 𝟏. 𝟓 𝒑𝒂𝒕𝒊𝒆𝒏𝒕𝒔
𝜇 − 𝜆 1.5 − 0.9
𝜆 0.9
𝑊𝑞 = = = 𝟏 𝒉𝒓 = 𝟔𝟎 𝒎𝒊𝒏𝒔
𝜇(𝜇 − 𝜆) 1.5(1.5 − 0.9)
1 1
𝑊= = = 𝟏. 𝟔𝟕 𝒉𝒓𝒔 = 𝟏𝟎𝟎 𝒎𝒊𝒏𝒔
𝜇 − 𝜆 1.5 − 0.9
1 𝜆
𝑊𝑞 = 𝐿𝑞 = 0 𝑊= 𝐿=
𝜇 𝜇
𝑒 −(𝜆Τ𝜇) (𝜆Τ𝜇)𝑛
𝑃𝑛 =
𝑛!
b. What is the probability that there are at most 14 members in the gym?
14 14 14
𝑒 −(𝜆/𝜇) 𝜆/𝜇 𝑛
𝑒 −(4/0.4) 4/0.4 𝑛
𝑃𝑛 = = = 𝟎. 𝟗𝟏𝟕
𝑛! 𝑛!
𝑛=0 𝑛=0 𝑛=0
0 1 2 . . . K-1 K
μ μ μ μ μ
𝜆 𝜌 𝐾 + 1 𝜌𝐾+1
𝜌= − , 𝜌≠1
𝜇 1−𝑝 1 − 𝜌𝐾+1
𝐿= .
𝐾
For n > K, Pn = 0. , 𝜌=1
2
For n ≤ K:
1 − 𝜌 𝜌𝑛
, 𝜌≠1 𝐿𝑞 = 𝐿 − (1 − 𝑃0 )
1 − 𝜌𝐾+1
𝑃𝑛 =
1
, 𝜌=1 𝜆𝑎𝑣𝑒 = 𝜆ҧ = 𝜆(1 − 𝑃𝐾
𝐾+1
0 1 . . . s . . . K-1 K
μ 2μ sμ sμ sμ sμ
𝑠 𝑛 𝑠 𝐾 −1
𝜆
𝜆Τ𝜇 𝜆Τ𝜇
𝜌= ,𝑠 ≤ 𝐾 𝑃0 = + 𝜌𝑛−𝑠
𝑠𝜇 𝑛=0 𝑛! 𝑠! 𝑛=𝑠+1
0 1 2 3 4 5 6
𝜆 15
𝜌= = =𝟏
𝜇 15
𝐾 6
𝐿= = = 𝟑 𝒄𝒂𝒓𝒔
2 2
𝐿 3
𝑊= = = 𝟎. 𝟐𝟑𝟑 𝒉𝒓 = 𝟏𝟒 𝒎𝒊𝒏𝒔
𝜆𝑎𝑣𝑒 12.857
0 1 2 3 4 5
𝑛 5 −1
5 4Τ1 4Τ1 5
𝑃0 = + 0.80𝑛−5 = 0.0233
𝑛=0 𝑛! 5! 𝑛=6
𝐿 = 𝟑. 𝟐𝟎𝟑𝟕 𝒃𝒐𝒐𝒕𝒉𝒔
𝐿𝑞 0
𝑊𝑞 = = = 𝟎 𝒉𝒓 = 𝟎 𝒎𝒊𝒏
𝜆𝑎𝑣𝑒 3.204
−1
4 4(4) 4(4)(4) 4(4)(4)(4) 4(4)(4)(4)(4)
𝑃0 = 1 + + + + + = 0.0233
1 1(2) 1(2)(3) 1(2)(3)(4) 1(2)(3)(4)(5)
4 4 4 4
𝑃1 = 𝑃0 = (0.0233) = 0.0933 𝑃4 = 𝑃3 = (0.2488) = 0.2488
1 1 4 4
4 4 4 4
𝑃2 = 𝑃1 = (0.0933) = 0.1866 𝑃5 = 𝑃4 = (0.2488) = 0.1991
2 2 5 5
4 4
𝑃3 = 𝑃2 = (0.1866) = 0.2488
3 3
K
𝐿= 𝑛𝑃𝑛 = 0 0.0233 + 1 0.0933 + … + 5 0.1991 = 𝟑. 𝟐𝟎𝟑𝟕 𝒃𝒐𝒐𝒕𝒉𝒔
𝑛=0
b. What is the average time a group spends in queue before it can use the
booth?
𝐿𝑞 = (𝑛 − 𝑠)𝑃𝑛 = 0 𝑔𝑟𝑜𝑢𝑝
𝑛>s
K
𝜆𝑎𝑣𝑒 = 𝜆𝑛 𝑃𝑛 = 4 0.0233 + 4 0.0933 + … + 0 0.1991 = 3.204 𝑔𝑟𝑜𝑢𝑝𝑠/ℎ𝑟
𝑛=0
𝐿𝑞 0
𝑊𝑞 = = = 𝟎 𝒉𝒓 = 𝟎 𝒎𝒊𝒏
𝜆𝑎𝑣𝑒 3.204
0 1 2 3 4 5 6 7
−1
4 4(4) 4(4)(4) 4(4)(4)(4)(4)(4) 4(4)(4)(4)(4)(4)(4)
𝑃0 = 1 + + + + ⋯+ +
1 1(2) 1(2)(3) 1(2)(3)(4)(5)(5) 1(2)(3)(4)(5)(5)(5)
𝑃0 = 0.0181
4 4 4 4
𝑃2 = 𝑃1 = (0.0725) = 0.1450 𝑃6 = 𝑃5 = (0.1547) = 0.1238
2 2 5 5
4 4 4 4
𝑃3 = 𝑃2 = (0.1450) = 0.1934 𝑃7 = 𝑃6 = (0.1238) = 0.0990
3 3 5 5
4 4
𝑃4 = 𝑃3 = (0.1934) = 0.1934
4 4
K
𝜆𝑎𝑣𝑒 = 𝜆𝑛 𝑃𝑛 = 4 𝑃0 + 𝑃1 + 𝑃2 + 𝑃3 + 𝑃4 + 𝑃5 + 𝑃6 + 0𝑃7 = 4 1 − 𝑃7
𝑛=0
𝐿𝑞 0.3218
𝑊𝑞 = = = 𝟎. 𝟎𝟖𝟗𝟑 𝒉𝒓 = 𝟓. 𝟑𝟓𝟖 𝒎𝒊𝒏𝒔
𝜆𝑎𝑣𝑒 3.604
0 1 2 . . . N-1 N
μ μ μ μ μ
𝑛 −1
𝑁 𝑁! 𝜆 𝜇
𝑃0 = 𝐿=𝑁− 1 − 𝑃0
𝑛=0 𝑁−𝑛 ! 𝜇 𝜆
𝜇+𝜆
For n > N, Pn = 0. 𝐿𝑞 = 𝑁 − 1 − 𝑃0
𝜆
For n ≤ N:
𝑛
𝑁! 𝜆 𝜆𝑎𝑣𝑒 = 𝜆ҧ = 𝜆(𝑁 − 𝐿൯
𝑃𝑛 = 𝑃0
𝑁−𝑛 ! 𝜇
0 1 . . . s . . . N-1 N
μ 2μ sμ sμ sμ sμ
𝑛 𝑛 −1
𝑠−1 𝜆 𝑁 𝐶𝑛𝑁 𝑛! 𝜆
𝑃0 = 𝐶𝑛𝑁 +
𝑛=0 𝜇 𝑛=𝑠 𝑠! 𝑠 𝑛−𝑠 𝜇
𝑁
For n > N, Pn = 0.
𝐿𝑞 = ൫𝑛 − 𝑠)𝑃𝑛
For n ≤ N: 𝑛=𝑠
𝑛 𝑠−1 𝑠−1
𝜆
𝐶𝑛𝑁 𝑃0 , 𝑛≤ 𝑠 𝐿 = 𝐿𝑞 + 𝑛𝑃𝑛 + 𝑠 1 − 𝑃𝑛
𝜇 𝑛=0 𝑛=0
𝑃𝑛 = .
𝑛
𝐶𝑛𝑁 𝑛! 𝜆 𝜆𝑎𝑣𝑒 = 𝜆ҧ = 𝜆(𝑁 − 𝐿൯
𝑃0 , 𝑛 ≥𝑠
𝑠! 𝑠 𝑛−𝑠 𝜇
0 1 2 3 4 5
𝑛 𝑛 −1
1 0.5 5 𝐶𝑛5 𝑛! 0.5
𝑃0 = 𝐶𝑛5 + = 𝟎. 𝟒𝟓𝟔
𝑛=0 3 𝑛=2 2! 2𝑛−2 3
b. On the average, how long does a machine queue before being attended
by an employee for setup?
𝑛 1
𝜆 0.5
𝑃1 = 𝐶𝑛𝑁 𝑃0 = 𝐶15 0.456 = 0.3800
𝜇 3
𝑛 2
𝜆 0.5
𝑃2 = 𝐶𝑛𝑁 𝑃0 = 𝐶25 0.456 = 0.1267
𝜇 3
𝑛 𝑛
𝐶𝑛𝑁 𝑛! 𝜆 𝐶35 3! 0.5
𝑃3 = 𝑃0 = 0.456 = 0.0317
𝑠! 𝑠 𝑛−𝑠 𝜇 2! 23−2 3
𝑛 𝑛
𝐶𝑛𝑁 𝑛! 𝜆 𝐶45 4! 0.5
𝑃4 = 𝑃0 = 0.456 = 0.0053
𝑠! 𝑠 𝑛−𝑠 𝜇 2! 24−2 3
𝑛 𝑛
𝐶𝑛𝑁 𝑛! 𝜆 𝐶55 5! 0.5
𝑃5 = 𝑃0 = 0.456 = 0.0004
𝑠! 𝑠 𝑛−𝑠 𝜇 2! 25−2 3
𝑁
𝐿𝑞 = ൫𝑛 − 𝑠)𝑃𝑛 = 0𝑃2 + 1𝑃3 + 2𝑃4 + 3𝑃5 = 0.0435 𝑚𝑎𝑐ℎ𝑖𝑛𝑒𝑠
𝑛=𝑠
𝑠−1 𝑠−1 1 1
𝐿 = 𝐿𝑞 + 𝑛𝑃𝑛 + 𝑠 1 − 𝑃𝑛 = 0.0435 + 𝑛𝑃𝑛 + 2 1 − 𝑃𝑛
𝑛=0 𝑛=0 𝑛=0 𝑛=0
𝐿𝑞 0.0435
𝑊𝑞 = = = 𝟎. 𝟎𝟐𝟎𝟓 𝒉𝒓 = 𝟏. 𝟐𝟐𝟗𝟖 𝒎𝒊𝒏𝒔
𝜆𝑎𝑣𝑒 2.1242
0 1 2 3 4 5 6
−1
4.8 4.8(4.0) 4.8(4.0)(3.2)(2.4)(1.6)(0.8)
𝑃0 = 1 + + + ⋯+ = 0.5712
10 10(10) 10(10)(10)(10)(10)(10)
𝑃2 = 𝟎. 𝟏𝟎𝟗𝟕
K
𝜆𝑎𝑣𝑒 = 𝜆𝑛 𝑃𝑛 = 4.8𝑃0 + 4.0𝑃1 + 3.2𝑃2 + 2.4𝑃3 + 1.6𝑃4 + 0.8𝑃5 + 0𝑃6
𝑛=0
𝐿 0.6399
𝑊= = = 𝟎. 𝟏𝟒𝟗𝟐 𝒉𝒓 = 𝟖. 𝟗𝟓𝟑𝟏 𝒎𝒊𝒏𝒔
𝜆𝑎𝑣𝑒 4.2881
(𝜆𝜎)2 + 𝜆/𝜇 2
𝐿𝑞 =
𝜆
2 1− 𝜇
𝜆 20
𝑊𝑞 = = = 𝟎. 𝟎𝟔𝟕 𝒉𝒓 = 𝟒 𝒎𝒊𝒏𝒔
𝜇(𝜇 − 𝜆) 30(30 − 20)
b. ATM with a normal service time with mean 2 minutes and standard
deviation of 0.3 mins.
M/G/1 with λ = 20/hr, µ = 30/hr, and σ = 0.3/60 hr = 0.005 hr
1 1
𝜎= = = 𝟎. 𝟎𝟓𝟎𝟎 𝒉𝒓
𝜆2𝑒𝑥𝑝𝑜 202
b. Constant (deterministic)
𝜎 = 𝟎 𝒉𝒓
𝑘 2
𝜎= = = 𝟎. 𝟎𝟑𝟓𝟒 𝒉𝒓
𝜆2𝑒𝑥𝑝𝑜 402
Case A B C D
Kendall-Lee Notation M/M/1 M/D/1 M/G/1 M/E2/1
Service Time Distribution exponential constant uniform erlang
Arrival Rate, λ 10/hr 10/hr 10/hr 10/hr
Service Rate, µ 20/hr 20/hr 20/hr 20/hr
Service Time Std Dev, σ 0.0500 hr 0.0000 hr 0.0167 hr 0.0354 hr
Lq (customers) 0.500 0.250 0.278 0.375
L (customers) 1.000 0.750 0.778 0.875
Wq (hrs) 0.050 0.025 0.028 0.038
W (hrs) 0.100 0.075 0.078 0.088
0 1 2 3 4 5
−1
5 5(5) 5(5)(5) 5(5)(5)(5)(5)
𝑃0 = 1 + + + + ⋯+ = 0.0398
2 2(3.33) 2(3.33)(4) 2(3.33)(4)(4)(4)
5 5 5 5
𝑃1 = 𝑃0 = (0.0398) = 0.0994 𝑃4 = 𝑃3 = (0.1866) = 0.2333
2 2 4 4
5 5 5 5
𝑃2 = 𝑃 = (0.0994) = 0.1493 𝑃5 = 𝑃4 = (0.2333) = 0.2916
3.33 1 3.33 4 4
5 5
𝑃3 = 𝑃2 = (0.1493) = 0.1866
4 4
𝐿 3.349
𝑊= = = 𝟎. 𝟗𝟒𝟔 𝒉𝒓 = 𝟓𝟔. 𝟕𝟑𝟏 𝒎𝒊𝒏𝒔
𝜆𝑎𝑣𝑒 3.542
0 1 2 3 4 5 6 7
𝑃0 = 0.1544 𝑃4 = 0.1489
𝑃1 = 0.1673 𝑃5 = 0.1129
𝑃2 = 0.1812 𝑃6 = 0.0306
𝑃3 = 0.1963 𝑃7 = 0.0083
𝑃0 = 𝟎. 𝟏𝟓𝟒𝟒