Queuing Theory
Queuing Theory
THEORY
THE PROBABILISTIC ANALYSIS OF WAITING LINES.
Stay in Queue: Short Video
Something we can all relate to…
Characteristics of the Queuing System
PQ – Priority Queuing
Processor Sharing
Customer Behaviors
Queuing System Design
Poisson Distribution
= for x = 0,1,2,3,4, . . .
Where:
𝑃(𝑥) = probability of x arrivals
x = number of arrivals per unit of time
𝜆 = average arrival rate
= 2.7183 (which is the base of the natural algorithm)
Kendall’s Notation
• The standard system used to describe and classify a queuing node.
• David George Kendall proposed describing queuing models using 3 factors
written A/S/c in 1953 where;
A = Time between arrivals to the queue
S = Service time distribution
c = Number of servers
It has been extended to A/S/c/K/N/D where;
K = Capacity of the queue
N = Calling population / population size to be served
D = Queuing discipline
Note: When the queuing parameters are not specified, it is assumed that;
K = ∞ N = ∞ D = FIFO
4 Models of Queuing Theory
1) M/M/1
2) M/M/m
3) M/D/1
Data Table
Given Description Value
m Number of Tellers 1
𝜆 Arrivals / hr 11
μ Service / hr 12
Model #1: M/M/1
1. Compute the average number of clients in the system (L) at any given time:
2. Compute the average number of hrs a client spends in the system (W).
Data Table
Given Description Value
Service cost per teller ($/hr) 5
Cost of waiting ($/hr) 6
h Working hours per shift 8
Model #1: M/M/1
1. Compute the total service cost ()
/ hr = m()
/ shift = / hr (h)
2. Compute for the Total Waiting Cost ($)
/ hr = ()()
/ shift = / hr) (h)
3. Compute the Total Cost ($)
/ hr = /hr + /hr
/ shift = /shift + /shift
Model #1: M/M/1
Cost Table
Costs Per hour Per shift
Total Service Cost ($) $5 $ 40
Total Waiting Cost ($) $ 60.50 $ 484.02
Total Cost ($) $ 65.50 $ 524.02
While total service cost is only $40/shift, Angie should expect a much larger
total cost of $524 because of the opportunity loss of $484.
Seat Work
In a bookstore, cashiers handle transactions with an average time of 2
minutes per transaction. Customers arrive at an average rate of 20
customers per hour. Assuming that arrivals follow a Poisson process
and service times follow an exponential distribution, let's determine:
a) The percentage of time the cashier is idle.
b) The average waiting time for customers.
c) The percentage of customers who have to wait in line before
reaching the cashier.
Model #2: M/M/m
Angie, the branch manager of Citibank and she wants to improve the service of the bank by
hiring an additional teller. She observed that the average arrival and the average number of
clients serviced per teller per hour remains the same. Figures are summarized in the table
below.
What is the probability that there are no clients? How many clients are in the bank at any given
time? How much time does client spend in the bank? How many clients are waiting to be
served? How much time does a client spend waiting? What is the probability that the teller is
busy?
Data Table
Given Description Value
m Number of Tellers 2
𝜆 Arrivals / hr 11
μ Service / hr 12
Model #2: M/M/m
1. Determine the Probability that there are no clients in the bank () from appendix C1. Note:
Appendix C1 is a table value of (multichannel for m=2).
= (m, 𝜆, μ) = (2,11,12) = 0.3714 ~ 37.14%
2. Compute the average Number of Clients in the system (L) at any given time:
𝜆μ ( x +
(11)(12) ( x + = 1.1604
Model #2: M/M/m
3. Compute the average hrs client spends in the system (W):
Data Table
Given Description Value
Service cost per teller ($/hr) 5
Cost of waiting ($/hr) 6
h Working hours per shift 8
Model #2: M/M/m
1. Compute the total service cost ()
/ hr = m()
/ shift = / hr (h)
2. Compute for the Total Waiting Cost ($)
/ hr = ()()
/ shift = / hr) (h)
3. Compute the Total Cost ($)
/ hr = /hr + /hr
/ shift = /shift + /shift
Model #2: M/M/m
Cost Table
Costs Per hour Per shift
Total Service Cost ($) $10 $80
Total Waiting Cost ($) $1.47 $11.72
Total Cost ($) $11.47 $91.72
Seat Work