Waiting Lines
PowerPoint Slides
by Jeff Heyl
C1
C2
C3
Waiting line
Priority
rule
Service
facilities
Served
customers
C5
Customer Population
The source of input
Finite or infinite source
C6
Single-channel, single-phase
Single-channel, multiple-phase
Multiple-channel, single-phase
Multiple-channel, multiple-phase
Mixed arrangement
C7
Service facilities
Service
facility 1
Service
facility 2
Service
facility 2
Service
facility 1
Service
facility 3
Service
facility 2
Service
facility 4
C 10
Service
facility 1
: 124
: 243
: 3214
Service
facility 2
Service
facility 3
Service
facility 4
Priority Rule
First-come, first-served (FCFS)used by
most service systems
Other rules
C 12
Probability Distributions
The sources of variation in waiting-line problems
come from the random arrivals of customers and
the variation of service times
Arrival distribution
C 13
Interarrival Times
( T)n -T
Pn =
e
for n = 0, 1, 2,
n!
where
Pn = Probability of n arrivals in T time
periods
= Average numbers of customer
arrivals per period
e = 2.7183
C 14
C 15
Service Time
Service time distribution can be described by an
exponential distribution with mean = 1/ and
variance = (1/ )2
Service time distribution: The probability that the
service time will be no more than T time periods
can be described by the exponential distribution
P(t T) = 1 e-T
where
=
average number of customers
completing service per period
t=
T=
length
Number
of customers in system
Waiting
time in line
Total
time in system
Service
facility utilization
C 18
Single-Server Model
Single-server, single line of customers, and
only one phase
Assumptions are
1.
2.
3.
4.
5.
6.
Single-Server Model
C 22
C 23
Application C.1
Customers arrive at a checkout counter at an average 20 per
hour, according to a Poisson distribution. They are served at an
average rate of 25 per hour, with exponential service times. Use
the single-server model to estimate the operating
characteristics of this system.
= = 20 = 0.8
25
C 24
Application C.1
2. Average number of customers
in the service system
20
L = =
=4
25 20
Lq ==0.8(4)
L
= 3.2
1
1
W=
=
= 0.2
25 20
Wq = =
W
0.8(0.2) = 0.16
C 25
C 26
1
30
0.133 0.133(30) = 1
= 37.52 customers/hour
C 27
P = 1 n
P
=0 n
4
and
n
= 1 n
(1
=0
30
= 0.80
37.52
Then,
P = 1 0.21(1 + 0.8 + 0.82 + 0.83 + 0.84)
= 1 0.672 = 0.328
Therefore, there is a nearly 33 percent chance that more
than four customers will be in the system.
C 28
= P1/5
If
P = 0.10
= (0.10)1/5 = 0.63
C 29
= 47.62 customers/hour
C 30
Application C.2
In the checkout counter example, what service rate is required
to have customers average only 10 minutes in the system?
SOLUTION
W1
= = 0.17 hr (or 10 minutes)
0.17( ) = 1, where = 20 customers arrival rate per hour
1 + 0.17(20)
=
= 25.88 or about 26 customers per hour
0.17
C 31
Multiple-Server Model
Service system has only one phase,
multiple-channels
Assumptions (in addition to single-server
model)
C 32
Multiple-Server Model
s 1
n 0
/ n / s
n!
s!
n!
=
n
n s
s! s n s P0
C 33
Multiple-Server Model
Lq = Average number of customers in the waiting line
P0 /
=
2
s! 1
s
Lq
C 35
C 36
$30(s) = $30(4)
$120.00
$50(L) = $50(4.53)
226.50
$346.50
Application C.3
Suppose the manager of the checkout system decides to add
another counter. The arrival rate is still 20 customers per hour,
but now each checkout counter will be designed to service
customers at the rate of 12.5 per hour. What is the waiting time
in line of the new system?
s = 2, = 12.5 customers per hour, = 20 customers per hour
SOLUTION
1. Average utilization of the system
20
=
=
= 0.8
s
2 12.5
C 38
Application C.3
1
1
s! 1
P0 =
1 20
12.5
1
20
12.5
2!
= 0.11
1 0.8
C 39
Application C.3
3. Average number of
customers in the
waiting line
P /
Lq = 0
2
s! 1
s
20
0.11
0 .8
12.5
=
= 1.408
2
2! 1 0.8
Lq
1.408
=
= 0.0704 hrs
Wq =
20
C 40
Littles Law
Relates the number of customers in a waiting line
system to the waiting time of customers
Using the notation from the single-server and
multiple-server models it is expressed as L = W
or Lq = Wq
Holds for a wide variety of arrival processes,
service time distributions, and numbers of
servers
Only need to know two of the parameters
C 41
Littles Law
Service
Estimate W
L customers
Average time = W =
in the facility
customer/hour
30
=
= 0.75 hours or 45 minutes
40
Manufacturing
Work-in-process = L = W
= 5 gear cases/hour (3 hours) = 15 gear cases
C 42
Littles Law
Provides basis for measuring the effects of
process improvements
Is not applicable to situations where the
customer population is finite
C 43
Finite-Source Model
Assumptions
C 44
Finite-Source Model
P0 = Probability that zero customers are in the system
N!
n
!
n 0
N
1 P0
C 45
Finite-Source Model
L = Average number of customers in the service system
= N
1 P0
C 46
Application C.4
DBT Bank has 8 copy machines located in various offices
throughout the building. Each machine is used continuously
and has an average time between failures of 50 hours. Once
failed, it takes 4 hours for the service company to send a repair
person to have it fixed. What is the average number of copy
machines in repair or waiting to be repaired?
C 47
Application C.4
SOLUTION
1. Probability that zero
customers are in the system
=
N!
n 0 N n !
N
P0 =
1
8!
8!
8!
0
1
8
0
.
08
0
.
08
0
.
08
8!
7!
0!
= 0.44
2. Average utilization of the
server
= 1 P0 = 1 0.44 = 0.56
3. Average number of
customers in the service
system
L= N
1 P0
0.25
1 0.44 = 1
= 8
0.02
C 48
C 49
C 50
C 51
$36.96
182.40
$219.36
C 52
Application C.5
The Hilltop Produce store is staffed by one checkout clerk. The
average checkout time is exponentially distributed around an
average of two minutes per customer. An average of 20
customers arrive per hour.
What is the average utilization rate?
SOLUTION
= = 20 = 0.667
30
C 53
Application C.5
What is the probability that three or more customers will be in
the checkout area?
First calculate 0, 1, and 2 customers will be in the checkout
area:
n = (1 ) 0 = (0.333)(0.667)0 = 0.333
n = (1 ) 1 = (0.333)(0.667)1 = 0.222
n = (1 ) 2 = (0.333)(0.667)2 = 0.111
Then calculate 3 or more customers will be in the checkout area:
1 P0 P1 P2 = 0.333 0.222 0.111 = 0.334
C 54
Application C.5
What is the average number of customers in the waiting line?
20
0.667
Lq = L =
= 1.333
=
30
20
1
1
=
= 0.1 hr 60 min/hr = 6 minutes
30 20
C 55
C 56
Solved Problem 1
A photographer takes passport pictures at an average rate of 20
pictures per hour. The photographer must wait until the
customer smiles, so the time to take a picture is exponentially
distributed. Customers arrive at a Poisson-distributed average
rate of 19 customers per hour.
a. What is the utilization of the photographer?
b. How much time will the average customer spend with the
photographer?
SOLUTION
a. The assumptions in the problem statement are consistent
with a single-server model. Utilization is
= = 19 = 0.95
20
C 57
Solved Problem 1
b. The average customer time spent with the photographer is
1
W= 1 =
= 1 hour
20 19
C 58
Solved Problem 2
The Mega Multiplex Movie Theater has three concession clerks
serving customers on a first come, first-served basis. The
service time per customer is exponentially distributed with an
average of 2 minutes per customer. Concession customers wait
in a single line in a large lobby, and arrivals are Poisson
distributed with an average of 81 customers per hour. Previews
run for 10 minutes before the start of each show. If the average
time in the concession area exceeds 10 minutes, customers
become dissatisfied.
a. What is the average utilization of the concession clerks?
b. What is the average time spent in the concession area?
C 59
Solved Problem 2
SOLUTION
a. The problem statement is consistent with the multiple-server
model, and the average utilization rate is
=
=
s
81 customers/hour
= 0.90
60 minutes/se rver hour
3 servers
2
minutes/cu
stomer
C 60
Solved Problem 2
1
b. The average time spent in the system, W, is W = Wq
Here,
Wq =
P0 /
and P0 =
Lq =
2
s! 1
Lq
s 1
n0
n!
/ 1
s! 1
s
We must solve for P0, Lq, and Wq, in that order, before we can
solve for W:
P0 =
s 1
n0
n!
s!
1
=
1
=
/ n / s
1 0.9
1
1
=
= 0.0249
1 2.7 3.645 32.805
40.15
C 61
Solved Problem 2
3
s
0.4411
0.0249 81 / 30 0.9
P0 /
=
=
= 7.352 customers
Lq =
2
2
6 0.01
3! 1 0.9
s! 1
Wq =
Lq
W = Wq
7.352 customers
= 0.0908 hour
81 customers/ hour
1
1
60 minutes
= 0.0908 hours +
hour = 0.1241 hour
30
hour
= 7.45 minutes
C 62
Solved Problem 3
The Severance Coal Mine serves six trains having exponentially
distributed interarrival times averaging 30 hours. The time
required to fill a train with coal varies with the number of cars,
weather-related delays, and equipment breakdowns. The time
to fill a train can be approximated by an exponential
distribution with a mean of 6 hours 40 minutes. The railroad
requires the coal mine to pay large demurrage charges in the
event that a train spends more than 24 hours at the mine. What
is the average time a train will spend at the mine?
SOLUTION
The problem statement describes a finite-source model, with
N = 6. The average time spent at the mine is W = L[(N L) ]
1, with 1/ = 30 hours/train, = 0.8 train/day, and = 3.6
trains/day. In this case,
C 63
Solved Problem 3
N!
n
!
n 0
N
P0 =
1
6
6! 0.8
n
!
3
.
6
n0
=
0
1
2
3
4
5
6
6! 0.8 6! 0.8 6! 0.8 6! 0.8 6! 0.8 6! 0.8 6! 0.8
6
!
3
.
6
5
!
3
.
6
4
!
3
.
6
3
!
3
.
6
2
!
3
.
6
1
!
3
.
6
0
!
3
.
6
1
1
=
= 0.1541
1 1.33 1.48 1.32 0.88 0.39 0.09
6.49
L= N
3 .6
1 0.1541
1 P0 = 6
0 .8
W = L N L
= 2.193 trains
2.193
3.807 0.8 = 0.72 day
C 65