Queuing Models
Queuing Models
Queuing Models
Chapter 1
Waiting Lines and Queuing
Theory Models
To accompany
Quantitative Analysis for Management, Tenth Edition,
by Render, Stair, and Hanna
Power Point slides created by Jeff Heyl 2009 Prentice-Hall, Inc.
Learning Objectives
After completing this chapter, students will be able to:
1. Describe the trade-off curves for cost-of-
waiting time and cost-of-service
2. Understand the three parts of a queuing
system: the calling population, the queue
itself, and the service facility
3. Describe the basic queuing system
configurations
4. Understand the assumptions of the common
models dealt with in this chapter
5. Analyze a variety of operating characteristics
of waiting lines
Chapter Outline
Introduction
Waiting Line Costs
Characteristics of a Queuing System
Single-Channel Queuing Model with
Poisson Arrivals and Exponential Service
Times (M/M/1)
Multichannel Queuing Model with Poisson
Arrivals and Exponential Service Times
(M/M/m)
Chapter Outline
Constant Service Time Model (M/D/1)
Finite Population Model (M/M/1 with Finite
Source)
Some General Operating Characteristic
Relationships
More Complex Queuing Models and the
Use of Simulation
Introduction
Queuing theory is the study of waiting lines
It is one of the oldest and most widely used
quantitative analysis techniques
Waiting lines are an everyday occurrence for
most people
Queues form in business process as well
The three basic components of a queuing
process are arrivals, service facilities, and the
actual waiting line
Analytical models of waiting lines can help
managers evaluate the cost and effectiveness
of service systems
Waiting Line Costs
Most waiting line problems are focused on
finding the ideal level of service a firm should
provide
In most cases, this service level is something
management can control
When an organization does have control, they
often try to find the balance between two
extremes
A large staff and many service facilities generally
results in high levels of service but have high
costs
Waiting Line Costs
Having the minimum number of service facilities
keeps service cost down but may result in
dissatisfied customers
There is generally a trade-off between cost of
providing service and cost of waiting time
Service facilities are evaluated on their total
expected cost which is the sum of service costs
and waiting costs
Organizations typically want to find the service
level that minimizes the total expected cost
Waiting Line Costs
Queuing costs and service level
* Service Level
Optimal
Service
Level
Three Rivers Shipping Company
Example
Three Rivers Shipping operates a docking facility
on the Ohio River
An average of 5 ships arrive to unload their
cargos each shift
Idle ships are expensive
More staff can be hired to unload the ships, but
that is expensive as well
Three Rivers Shipping Company wants to
determine the optimal number of teams of
stevedores to employ each shift to obtain the
minimum total expected cost
Three Rivers Shipping Company
Example
Three Rivers Shipping waiting line cost analysis
NUMBER OF TEAMS OF STEVEDORES
WORKING
1 2 3 4
(a) Average number of ships arriving 5 5 5 5
per shift
(b) Average time each ship waits to 7 4 3 2
be unloaded (hours)
(c) Total ship hours lost per shift 35 20 15 10
(a x b)
(d) Estimated cost per hour of idle $1,000 $1,000 $1,000 $1,000
ship time
(e) Value of ships lost time or waiting $35,000 $20,000 $15,000 $10,000
cost (c x d)
(f) Stevedore team salary or service $6,000 $12,000 $18,000 $24,000
cost
(g) Total expected cost (e + f) $41,000 $32,000 $33,000 $34,000
Optimal cost
Characteristics of a Queuing System
e X
P( X )
X!
e 2 20 0.1353(1)
P (0 ) 0.1353 14%
0! 1
e 2 21 e 2 2 0.1353(2)
P (1) 0.2706 27%
1! 1 1
e 2 22 e 2 4 0.1353( 4 )
P (2 ) 0.2706 27%
2! 2(1) 2
Characteristics of a Queuing System
0.30 0.25
0.25 0.20
0.20
Probability
Probability
0.15
0.15
0.10
0.10
0.05 0.05
0.00 | | | | | | | | | | 0.00 | | | | | | | | | |
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
X X
= 2 Distribution = 4 Distribution
Characteristics of a Queuing System
Behavior of arrivals
Most queuing models assume customers are
patient and will wait in the queue until they are
served and do not switch lines
Balking refers to customers who refuse to join
the queue
Reneging customers enter the queue but
become impatient and leave without receiving
their service
That these behaviors exist is a strong
argument for the use of queuing theory to
managing waiting lines
Characteristics of a Queuing System
Queue
Service Departures
Arrivals Facility after Service
Queue
Type 1 Type 2 Departures
Arrivals Service Service after
Facility Facility Service
Service
Facility Departures
Queue
1
Service
Arrivals Facility after
2
Service
Facility Service
3
Type 1 Type 2
Queue Service Service
Facility Facility
1 1 Departures
Arrivals after
Service
Type 1 Type 2
Service Service
Facility Facility
2 2
Average Service Time
of 20 Minutes
Average Service Time of 1 Hour
| | | | | | |
0 30 60 90 120 150 180 Service Time (Minutes)
Identifying Models Using
Kendall Notation
D. G. Kendall developed a notation for queuing
models that specifies the pattern of arrival, the
service time distribution, and the number of
channels
It is of the form
Arrival Service time Number of service
distribution distribution channels open
Queuing Equations
We let
= mean number of arrivals per time period
= mean number of people or items served
per time period
The arrival rate and the service rate must be
for the same time period
Single-Channel Model, Poisson Arrivals,
Exponential Service Times (M/M/1)
1. The average number of customers or units in the
system, L
L
2. The average time a customer spends in the
system, W
1
W
3. The average number of customers in the queue, Lq
2
Lq
( )
Single-Channel Model, Poisson Arrivals,
Exponential Service Times (M/M/1)
4. The average time a customer spends waiting in
the queue, Wq
Wq
( )
2 2
L 2 cars in the system
32 1 on the average
1 1
W 1 hour that an average car
32 spends in the system
Arnolds Muffler Shop Case
2 22 4
Lq 1.33 cars waiting in line
( ) 3(3 2) 3(1) on the average
2
Wq hour 40 minutes average
( ) 3 waiting time per car
2
0.67 percentage of time
3 mechanic is busy
2
P0 1 1 0.33 probability that there
3 are 0 cars in the system
Arnolds Muffler Shop Case
k Pn>k = (2/3)k+1
Total
= (Wq)Cw
waiting cost
Arnolds Muffler Shop Case
2 2
L 1 car in the system
42 2 on the average
1 1
W 1/2 hour that an average car
42 spends in the system
Arnolds Muffler Shop Case
2 22 4
Lq 1/2 cars waiting in line
( ) 4( 4 2) 8(1) on the average
1
Wq hour 15 minutes average
( ) 4 waiting time per car
2
0.5 percentage of time
4 mechanic is busy
2
P0 1 1 0.5 probability that there
4 are 0 cars in the system
Arnolds Muffler Shop Case
k Pn>k = (2/4)k+1
0 0.500
1 0.250
2 0.125
3 0.062
4 0.031
5 0.016
6 0.008
7 0.004
Arnolds Muffler Shop Case
The customer waiting cost is the same $10 per
hour
Total daily
waiting cost = (8 hours per day)WqCw
= (8)(2)(1/4)($10) = $40.00
The new mechanic is more expensive at $9 per
hour
Total daily
service cost = (8 hours per day)mCs
= (8)(1)($9) = $72
So the total cost of the system is
Total daily cost of
the queuing system = $40 + $72 = $112
Arnolds Muffler Shop Case
( / )m
L P
( m 1)! ( m )2 0
( / )m 1 L
W P
( m 1)! ( m ) 2 0
Multichannel Model, Poisson Arrivals,
Exponential Service Times (M/M/m)
4. The average number of customers or units in line
waiting for service
Lq L
5. The average number of customers or units in line
waiting for service
1 Lq
Wq W
6. The average number of customers or units in line
waiting for service
m
Arnolds Muffler Shop Revisited
Arnold wants to investigate opening a second
garage bay
He would hire a second worker who works at the
same rate as his first worker
The customer arrival rate remains the same
1
P0 for m
n m 1
1
n
1 m
m
n!
n0 m! m
P0 0.5
probability of 0 cars in the system
Arnolds Muffler Shop Revisited
( / )m
L P 0.75
( m 1)! ( m ) 2 0
L 3
W hours 22 1 minutes
8 2
Arnolds Muffler Shop Revisited
3 2 1
Lq L 0.083
4 3 12
1 Lq
0.083
Wq W 0.0415 hour 2 1 minutes
2 2
Arnolds Muffler Shop Revisited
Effect of service level on Arnolds operating
characteristics
LEVEL OF SERVICE
ONE TWO ONE FAST
OPERATING MECHANIC MECHANICS MECHANIC
CHARACTERISTIC =3 = 3 FOR BOTH =4
Probability that the system
0.33 0.50 0.50
is empty (P0)
Average number of cars in
2 cars 0.75 cars 1 car
the system (L)
Average time spent in the
60 minutes 22.5 minutes 30 minutes
system (W)
Average number of cars in
1.33 cars 0.083 car 0.50 car
the queue (Lq)
Average time spent in the
40 minutes 2.5 minutes 15 minutes
queue (Wq)
Arnolds Muffler Shop Revisited
Adding the second service bay reduces the
waiting time in line but will increase the service
cost as a second mechanic needs to be hired
Total daily waiting cost = (8 hours per day)WqCw
= (8)(2)(0.0415)($10) = $6.64
2
Lq
2 ( )
Wq
2 ( )
Constant Service Time Model (M/D/1)
L Lq
1
W Wq
Constant Service Time Model (M/D/1)
n 0 ( N n )!
Finite Population Model
(M/M/1 with Finite Source)
2. Average length of the queue
Lq N 1 P0
1
W Wq
N!
n
Pn P0 for n 0,1,..., N
N n!
Department of Commerce Example
1. 1
P0 n
0.564
5
5! 0.05
n0 ( 5 n )!
0 .5
2. 0.05 0.5
Lq 5 1 P0 0.2 printer
0.05
4. 0.2 0.2
Wq 0.91 hour
(5 0.64 )0.05 0.22
1
5. W 0.91 2.91 hours
0.50
If printer downtime costs $120 per hour and the
technician is paid $25 per hour, the total cost is
Total (Average number of printers down)
hourly = (Cost per downtime hour)
cost + Cost per technician hour
W = Wq + 1/
More Complex Queuing Models and
the Use of Simulation
In the real world there are often variations from
basic queuing models
Computer simulation can be used to solve these
more complex problems
Simulation allows the analysis of controllable
factors
Simulation should be used when standard
queuing models provide only a poor
approximation of the actual service system