Waiting Lines and Queuing Theory Models
Waiting Lines and Queuing Theory Models
Waiting Lines and Queuing Theory Models
where
P(X) = probability of X arrivals
X = number of arrivals per unit of time
= average arrival rate
e = 2.7183
We find the values of e
If = 2, we can find the values for X = 0, 1, and 2
CHARACTERISTICS OF A QUEUING
SYSTEM
!
) (
X
e
X P
X
=
% .
) ( .
!
) ( 14 1353 0
1
1 1353 0
0
2
0
0 2
= = = =
e
P
% .
) ( .
!
) ( 27 2706 0
1
2 1353 0
1
2
1
2
1
2 1 2
= = = = =
e e
P
% .
) ( .
) ( !
) ( 27 2706 0
2
4 1353 0
1 2
4
2
2
2
2 2 2
= = = = =
e e
P
Two examples of the Poisson distribution for
arrival rates
CHARACTERISTICS OF A QUEUING
SYSTEM
0.30
0.25
0.20
0.15
0.10
0.05
0.00
P
r
o
b
a
b
i
l
i
t
y
= 2 Distribution
|
0
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
X
0.25
0.20
0.15
0.10
0.05
0.00
P
r
o
b
a
b
i
l
i
t
y
= 4 Distribution
|
0
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
X
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
Waiting Line Characteristics
Waiting lines can be either limited or unlimited
Queue discipline refers to the rule by which
customers in the line receive service
The most common rule is first-in, first-out (FIFO)
Other rules are possible and may be based on
other important characteristics
Other rules can be applied to select which
customers enter which queue, but may apply
FIFO once they are in the queue
CHARACTERISTICS OF A QUEUING
SYSTEM
Service Facility Characteristics
Basic queuing system configurations
Service systems are classified in terms of the number of channels,
or servers, and the number of phases, or service stops
A single-channel system with one server is quite common
Multichannel systems exist when multiple servers are fed by one
common waiting line
In a single-phase system the customer receives service form just
one server
If a customer has to go through more than one server, it is a
multiphase system
CHARACTERISTICS OF A QUEUING
SYSTEM
Four basic queuing system configurations
CHARACTERISTICS OF A QUEUING
SYSTEM
Single-Channel, Single-Phase System
Arrivals
Departures
after Service
Queue
Service
Facility
Single-Channel, Multiphase System
Arrivals
Departures
after
Service
Queue
Type 1
Service
Facility
Type 2
Service
Facility
Four basic queuing system configurations
CHARACTERISTICS OF A QUEUING
SYSTEM
Multichannel, Single-Phase System
Arrivals
Queue
Service
Facility
1
Departures
after
Service
Facility
2
Service
Service
Facility
3
Four basic queuing system configurations
CHARACTERISTICS OF A QUEUING
SYSTEM
Multichannel, Multiphase System
Arrivals
Queue
Departures
after
Service
Type 2
Service
Facility
1
Type 2
Service
Facility
2
Type 1
Service
Facility
2
Type 1
Service
Facility
1
Service time distribution
Service patterns can be either constant or random
Constant service times are often machine
controlled
More often, service times are randomly distributed
according to a negative exponential probability
distribution
Models are based on the assumption of particular
probability distributions
Analysts should take to ensure observations fit the
assumed distributions when applying these models
CHARACTERISTICS OF A QUEUING
SYSTEM
Two examples of exponential distribution for
service times
CHARACTERISTICS OF A QUEUING
SYSTEM
f (x) = e
x
for x 0
and > 0
= Average Number Served per Minute
Average Service Time of 1 Hour
Average Service Time
of 20 Minutes
f (x)
Service Time (Minutes)
|
0
|
30
|
60
|
90
|
120
|
150
|
180
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
IDENTIFYING MODELS USING
KENDALL NOTATION
Specific letters are used to represent probability
distributions
M = Poisson distribution for number of occurrences
D = constant (deterministic) rate
G = general distribution with known mean and variance
Arrival
distribution
Service time
distribution
Number of service
channels open
So a single channel model with Poisson arrivals
and exponential service times would be
represented by
M/M/1
If a second channel is added we would have
M/M/2
A three channel system with Poisson arrivals and
constant service time would be
M/D/3
A four channel system with Poisson arrivals and
normally distributed service times would be
M/G/4
IDENTIFYING MODELS USING
KENDALL NOTATION
Assumptions of the model
Arrivals are served on a FIFO basis
No balking or reneging
Arrivals are independent of each other but rate is
constant over time
Arrivals follow a Poisson distribution
Service times are variable and independent but
the average is known
Service times follow a negative exponential
distribution
Average service rate is greater than the average
arrival rate
SINGLE-CHANNEL MODEL, POISSON
ARRIVALS, EXPONENTIAL SERVICE TIMES
(M/M/1)
When these assumptions are met, we can
develop a series of equations that define the
queues operating characteristics
Queuing Equations
We let
SINGLE-CHANNEL MODEL, POISSON
ARRIVALS, EXPONENTIAL SERVICE TIMES
(M/M/1)
= 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
1. The average number of customers or units in the
system, L
SINGLE-CHANNEL MODEL, POISSON
ARRIVALS, EXPONENTIAL SERVICE TIMES
(M/M/1)
= L
2. The average time a customer spends in the
system, W
3. The average number of customers in the queue, L
q
=
1
W
) (
=
2
q
L
4. The average time a customer spends waiting in
the queue, W
q
SINGLE-CHANNEL MODEL, POISSON
ARRIVALS, EXPONENTIAL SERVICE TIMES
(M/M/1)
) (
=
q
W
5. The utilization factor for the system, , the
probability the service facility is being used
=
6. The percent idle time, P
0
, the probability no one
is in the system
SINGLE-CHANNEL MODEL, POISSON
ARRIVALS, EXPONENTIAL SERVICE TIMES
(M/M/1)
= 1
0
P
7. The probability that the number of customers in
the system is greater than k, P
n>k
1 +
>
|
.
|
\
|
=
k
k n
P
=
W = 1 hour that an average car
spends in the system
1
2
2 3
2
=
=
L = 2 cars in the system
on the average
ARNOLDS MUFFLER SHOP CASE
hour
3
2
=
=
) (
q
W = 40 minutes average
waiting time per car
) ( ) ( ) ( 1 3
4
2 3 3
2
2 2
=
=
q
L = 1.33 cars waiting in line
on the average
67 0
3
2
. = = =
= percentage of time
mechanic is busy
33 0
3
2
1 1
0
. = = =
=
W = 1/2 hour that an average car
spends in the system
2
2
2 4
2
=
=
L = 1 car in the system
on the average
ARNOLDS MUFFLER SHOP CASE
hour
4
1
=
=
) (
q
W = 15 minutes average
waiting time per car
) ( ) ( ) ( 1 8
4
2 4 4
2
2 2
=
=
q
L = 1/2 cars waiting in line
on the average
5 0
4
2
. = = =
= percentage of time
mechanic is busy
5 0
4
2
1 1
0
. = = =
>
|
.
|
\
|
+
(
(
|
.
|
\
|
=
=
=
m
m
m
m n
P
m
m n
n
n
for
1 1
1
1
0
0
! !
2. The average number of customer in the system
MULTICHANNEL MODEL, POISSON
ARRIVALS, EXPONENTIAL SERVICE TIMES
(M/M/M)
+
=
0
2
1
P
m m
L
m
) ( )! (
) / (
3. The average time a unit spends in the waiting line
or being served, in the system
L
P
m m
W
m
= +
=
1
1
0
2
) ( )! (
) / (
4. The average number of customers or units in line
waiting for service
MULTICHANNEL MODEL, POISSON
ARRIVALS, EXPONENTIAL SERVICE TIMES
(M/M/M)
= L L
q
5. The average number of customers or units in line
waiting for service
6. The average number of customers or units in line
waiting for service
q
q
L
W W = =
1
m
=
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
ARNOLDS MUFFLER SHOP
REVISITED
>
|
.
|
\
|
+
(
(
|
.
|
\
|
=
=
=
m
m
m
m n
P
m
m n
n
n
for
1 1
1
1
0
0
! !
5 0
0
. = P
= probability of 0 cars in the system
Average number of cars in the system
ARNOLDS MUFFLER SHOP
REVISITED
75 0
1
0
2
.
) ( )! (
) / (
= +
=
P
m m
L
m
minutes
2
1
22 hours
8
3
= = =
L
W
Average time a car spends in the system
Average number of cars in the queue
ARNOLDS MUFFLER SHOP
REVISITED
Average time a car spends in the queue
083 0
12
1
3
2
4
3
. = = = =
L L
q
minutes
2
1
2 hour 0.0415
2
083 0 1
= = = = =
.
q
q
L
W W
Effect of service level on Arnolds operating
characteristics
ARNOLDS MUFFLER SHOP
REVISITED
LEVEL OF SERVICE
OPERATING
CHARACTERISTIC
ONE
MECHANIC
= 3
TWO
MECHANICS
= 3 FOR BOTH
ONE FAST
MECHANIC
= 4
Probability that the system
is empty (P
0
)
0.33 0.50 0.50
Average number of cars in
the system (L)
2 cars 0.75 cars 1 car
Average time spent in the
system (W)
60 minutes 22.5 minutes 30 minutes
Average number of cars in
the queue (L
q
)
1.33 cars 0.083 car 0.50 car
Average time spent in the
queue (W
q
)
40 minutes 2.5 minutes 15 minutes
Table 14.2
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
ARNOLDS MUFFLER SHOP
REVISITED
Total daily waiting cost = (8 hours per day)W
q
C
w
= (8)(2)(0.0415)($10) = $6.64
Total daily service cost = (8 hours per day)mC
s
= (8)(2)($7) = $112
So the total cost of the system is
Total system cost = $6.64 + $112 = $118.64
The fast mechanic is the cheapest option