Waiting Lines and Queuing Theory Models
Waiting Lines and Queuing Theory Models
Theory Models
To accompany
14-1
2003 by Prentice
Introduction
The study of waiting lines, called queuing theory, is one
of the oldest and most widely used Operations Research
techniques.
Waiting lines are an everyday occurrence, affecting
people shopping for groceries, buying gasoline, or
making a bank deposit.
Queues, another term for waiting lines, may also take the
form of machines waiting to be repaired, trucks in line to
be unloaded, or airplanes lined up on a runway waiting
for permission to take off.
The three basic components of a queuing process are
arrivals, service facilities, and the actual waiting line.
In this chapter we discuss how analytical models of waiting
lines can help managers evaluate the cost and effectiveness
of service systems.
To accompany
14-2
2003 by Prentice
To accompany
14-4
2003 by Prentice
"The goal is to find the service level that minimizes total expected
cost."
To accompany
14-5
2003 by Prentice
Service Level
Total
Expected
Cost
Cost of
Providing
Service
Cost of
Waiting
Time
Service Level
To accompany
14-6
2003 by Prentice
14-7
2003 by Prentice
35
$1,000
20
$1,000
15
$1,000
10
$1,000
35,000
29,000
$15,000
$10,000
$6,000
$41,000
$12,000
$32,000
18,000
$33,000
$24,000
$34,000
14-8
2003 by Prentice
Characteristics Of A Queuing
System
We will study three parts of a queuing system:
1. The arrivals or inputs to the system (sometimes
referred to as the calling population),
2. The queue or the waiting line itself, and
3. The service facility
To accompany
14-9
2003 by Prentice
1. Arrival Characteristics
The input source that generates arrivals or customers
for the service system has three major characteristics.
It is important to consider:
the size of the calling population,
the pattern of arrivals at the queuing system, and
the behavior of the arrivals.
To accompany
14-10
2003 by Prentice
1. Arrival Characteristics\continued
Size of the Calling Population
Population sizes are considered to be either unlimited
(essentially infinite) or limited (finite).
For practical purposes, examples of unlimited population
includes cars arriving at a highway tollbooth, shoppers
arriving at a supermarket, or students arriving to register
for classes at large university.
"Most queuing models assume such an infinite calling
population".
An example of a finite population is a shop with only eight
machines that break down and require service.
To accompany
14-11
2003 by Prentice
1. Arrival Characteristics\continued
Pattern of Arrivals at the System
Customers either arrive at service facility according to
some known schedule (for example, one patient every
15 minutes or one student for advising every half hour)
or else they arrive randomly.
Arrivals are considered random when they are
independent of one another and their occurrence
cannot be predicted exactly.
Frequently in queuing problems, the number of
arrivals per unit of time can be estimated by a
probability distribution known as the Poisson
distribution.
"The Poisson probability distribution is used in many
queuing models to represent arrival patterns."
To accompany
14-12
2003 by Prentice
14-13
2003 by Prentice
.30
.25
.20
.15
.10
.05
.00
0 1 2 3 4 5 6 7 8 9 10 1
1
X
To accompany
14-14
P(X), = 4
P(X)
.35
.30
.25
.20
.15
.10
.05
.00
P(X)
P(X), = 2
e x
P(X)
X!
0 1 2 3 4 5 6 7 8 9 10 1
1
X
2003 by Prentice
1. Arrival Characteristics\continued
Behavior of the Arrival
Most queuing models assume that an arriving customer is a
patient customer.
Patient customers are people or machines that wait in the
queue until they are served and do not switch between lines.
Unfortunately, life and operations research are complicated
by the fact that people have been known to balk or renege.
Balking refers to customers who refuse to join the waiting
line because it is too long to suit their needs or interests.
Reneging customers are those who enter the queue but then
become impatient and leave without completing their
transaction.
To accompany
14-15
2003 by Prentice
To accompany
14-16
2003 by Prentice
2. Waiting Line
Characteristics\continued
Length of the queue
The length of a line can be either limited or unlimited.
A queue is limited when it cannot increase to an infinite
length. This may be the case in a small restaurant that
has only 10 tables and can serve no more than 50 diners
an evening.
Analytic queuing models are treated in this chapter
under an assumption of unlimited queue length.
To accompany
14-17
2003 by Prentice
2. Waiting Line
Characteristics\continued
Service priority/Queue discipline
1.
2.
3.
4.
To accompany
14-18
2003 by Prentice
1.
2.
To accompany
14-19
2003 by Prentice
3. Service Facility
Characteristics\continued
Basic Queuing System Configuration
Service systems are usually classified in terms of
number of channels and number of phases in service.
1. Number of channels
A single-channel system, with one server, is typified by
the drive-in bank that has only one open teller.
A multi-channel system, when the bank has several
tellers on duty and each customer waits in one common
line for the first available teller.
To accompany
14-20
2003 by Prentice
3. Service Facility
Characteristics\continued
2. Number of phases in service
A single-phase system, in this case the customer receives
service from only one station and then exists the
system.
A multiphase system, for example, if the restaurant
require you to place your order at one station, pay at a
second, and pick up the food at a third service stop.
To accompany
14-21
2003 by Prentice
Queue
Facility
1
Facility
2
To accompany
14-22
2003 by Prentice
Queue
Service
facility 2
Service
facility 3
Multi-Channel,
Single Phase
Queue
Multi-Channel,
Multiphase Phase
To accompany
14-23
Type 1
Service
Facility
Type 2
Service
Facility
Type 1
Service
Facility
Type 2
Service
Facility
2003 by Prentice
3. Service Facility
Characteristics\continued
The Pattern of Service Times
Service patterns are like arrival patterns in that they
can be either constant or random.
If service time is constant, it takes the same amount of
time to take care of each customer. This is the case in a
machine-performed service operation such as an
automatic car wash.
More often, service times are randomly distributed. In
many cases it can be assumed that random service
times are described by the negative exponential
probability distribution.
To accompany
14-24
2003 by Prentice
3. Service Facility
Characteristics\continued
The next figure illustrates that if service times follow an
exponential distribution, the probability of any very
long service time is low.
Probability
(for Intervals of 1 Minute)
f(x) e
for x 0, 0
30
60
To accompany
90
120
150
14-25
180
2003 by Prentice
14-26
2003 by Prentice
To accompany
14-27
2003 by Prentice
To accompany
14-28
2003 by Prentice
population.
To accompany
14-29
2003 by Prentice
To accompany
14-30
2003 by Prentice
14-31
2003 by Prentice
To accompany
14-32
2003 by Prentice
1
Average waiting time in system, W
-
2
Average number in queue, L q
-
14-33
2003 by Prentice
Utilization Factor,
(The utilization factor for the system, , that is, the probability that the
service facility is being used)
Percent Idle, P0 1
(The percent idle time, P0, that is, the probability that no one is in the system)
Pn k
To accompany
k 1
14-34
2003 by Prentice
14-35
2003 by Prentice
2
L
4
Lq
1.33
- 3(3 2) 3
2
2
Wq
- 3(3 2) 3
To accompany
14-36
2003 by Prentice
2
P0 1 1 0.33
Calculate the probability that more than three cars are in the system:
Pn k
k 1
To accompany
31
0.198
14-37
2003 by Prentice
14-39
2003 by Prentice
the system)
the queue)
To accompany
14-40
2003 by Prentice
To accompany
14-41
2003 by Prentice
To accompany
14-42
2003 by Prentice
14-43
2003 by Prentice
2
L
1
- 42
1
1
1
W
4 1
Lq
2
2 1
Wq
14-44
2003 by Prentice
system
It is quite evident that Smith's speed will result in
considerably shorter queues and waiting times. For example, a
customer would now spend and average of 1/2 hour in the
system and 1/4 hour waiting in the queue, as opposed to 1 hour
in the system and 2/3 hour in the queue with Blank as
mechanic.
To accompany
14-45
2003 by Prentice
14-47
2003 by Prentice
P0
n M 1
n 0
To accompany
n!
m!
n
14-48
m
m
2003 by Prentice
L
P
M 1! M 2 0
3.
4.
L
W
Lq L
To accompany
14-49
2003 by Prentice
1 Lq
Wq W
5.
Utilization factor
To accompany
14-50
2003 by Prentice
To accompany
14-51
2003 by Prentice
1 2
1 2
2! 3
n 0 n! 3
n
n 1
2(3) 2
2(3)
2(3) 2
0. 5
2
L
(0.5) 0.75
2
3
1! 2(3) 2
0.75
W
22.5 minutes
2
Wq
0.083
2
0.0415 hour
To accompany
14-52
2
L q 0.75 0.083
3
2003 by Prentice
To accompany
14-53
2003 by Prentice
One mechanic
(Blank)=3
Two
mechanics
=3 for each
One
mechanic
(Smith)=4
P0
L
W
Lq
Wq
0.33
2 cars
60 minutes
1.33 cars
40 minutes
0.50
0.75 car
22.5 min.
0.083 car
2.5 min.
0.50
1 car
30 min.
0.50
15 min.
$162
$118.64
$112
Total costs
To accompany
14-54
2003 by Prentice
To accompany
14-55
2003 by Prentice
2
Lq
2
Wq
2
L Lq
1
W Wq
To accompany
14-56
2003 by Prentice
To accompany
14-57
2003 by Prentice
Wq
8
1
hr
2 ( ) 2(12)(12 8) 12
14-58
2003 by Prentice
To accompany
14-59
2003 by Prentice
1.
2.
3.
4.
To accompany
14-60
2003 by Prentice
P0
1
N!
n 0 ( N n )!
N
Lq N
1 P0
L Lq 1 P0
To accompany
14-61
2003 by Prentice
Lq
N L
1
W Wq
N!
P0
P(n, n N) Pn
N n !
To accompany
14-62
2003 by Prentice
1
N!
n 0 ( N n)!
N
To accompany
1
5
5!
0.05 n
(
)
n 0 (5 n)! 0.5
14-63
0.564
2003 by Prentice
0.2
Wq
0.91hr
N L (5 0.64)(0.05)
1
1
W Wq 0.91
2.91hr
0.5
To accompany
14-64
2003 by Prentice
To accompany
14-65
2003 by Prentice