Waiting Lines and Queuing Theory Models
Waiting Lines and Queuing Theory Models
Waiting Lines and Queuing Theory Models
Theory Models
Introduction to Queuing Theory
It is estimated that Americans spend a
total of 37 billion hours a year waiting in
lines.
Places we wait in line...
- stores - post offices
- banks - traffic lights
- Restaurants - airports
Waiting lines do not always contain people...
- subassemblies in a manufacturing
plant
- electronic message on the Internet
Queuing theory deals with the analysis
and management of waiting lines.
Queuing System Examples
* 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 ship’s lost time or $35,000 $20,000 $15,000 $10,000
waiting 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
Behavior of arrivals
Normal 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
Jockeying customers switching between 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
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 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
Arnold’s 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
Arnold’s Muffler Shop Case
Introducing costs into the model
Arnold wants to do an economic analysis of
the queuing system and determine the waiting
cost and service cost
The total service cost is
Total
waiting cost = (Wq)Cw
Arnold’s 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
Arnold’s 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
Arnold’s 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
Arnold’s Muffler Shop Case