Queuing Theory
Queuing Theory
Queuing Theory
Queuing Theory
Often called waiting lines
Waiting lines are common situations
Useful in both
manufacturing
and service
areas
Common Queuing
Situations
Situation
Arrivals in Queue
Service Process
Supermarket
Grocery shoppers
Automobiles
Doctors office
Patients
Computer system
Programs to be run
Switching equipment to
forward calls
Bank
Customer
Machine
maintenance
Broken machines
Harbor
Arrival Characteristics
1. Size of the population
Unlimited (infinite) or limited (finite)
2. Pattern of arrivals
Scheduled or random, often a Poisson
distribution
3. Behavior of arrivals
Wait in the queue and do not switch
lines
No balking or reneging
Arrivals
from the
general
population
Queue
(waiting line)
Service
facility
Daves
Car Wash
Enter
Arrival Characteristics
Size of the population
Behavior of arrivals
Statistical distribution
of arrivals
In the system
Waiting Line
Characteristics
Limited vs.
unlimited
Queue discipline
Exit
Service Characteristics
Service design
Statistical distribution
of service
Figure D.1
Poisson Distribution
e- x
P(x) =
x!
where
for x = 0, 1, 2, 3, 4,
P(x)
=
probability of x
arrivals
x =
number of arrivals per
unit of time
=
average arrival rate
e =
2.7183 (which is the base
of the natural logarithms)
Poisson Distribution
0.25
0.25
0.02
0.02
Probability
Probability
e- x
Probability = P(x) =
x!
0.15
0.10
0.15
0.10
0.05
0.05
0 1 2 3 4 5 6 7 8 9
Figure D.2
Distribution for = 2
0 1 2 3 4 5 6 7 8 9 10 11 x
Distribution for = 4
Waiting-Line Characteristics
Limited or unlimited queue length
Queue discipline - first-in, first-out
(FIFO) is most common
Other priority rules may be used in
special circumstances
Service Characteristics
Queuing system designs
Single-channel system, multiplechannel system
Single-phase system, multiphase
system
Arrivals
Departures
after service
Phase 1
service
facility
Phase 2
service
facility
Departures
after service
Queue
Arrivals
Service
facility
Channel 1
Service
facility
Channel 2
Service
facility
Channel 3
Departures
after service
Queue
Arrivals
Phase 1
service
facility
Channel 1
Phase 2
service
facility
Channel 1
Phase 1
service
facility
Channel 2
Phase 2
service
facility
Channel 2
Departures
after service
Negative Exponential
Distribution
Probability that service time 1
-t for t 1
Probability that service time is greater than t = e-t
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
|
|
|
|
|
|
|
|
|
|
|
|
0.0 |
0.00 0.25 0.50 0.75 1.00 1.25 1.50 1.75 2.00 2.25 2.50 2.75 3.00
Figure D.4
Time t (hours)
Measuring Queue
Performance
1. Average time that each customer or object
spends in the queue
2. Average queue length
3. Average time each customer spends in the
system
4. Average number of customers in the system
5. Probability that the service facility will be idle
6. Utilization factor for the system
7. Probability of a specific number of customers
in the system
Queuing Costs
Cost
Minimum
Total
cost
Optimal
service level
High level
of service
Figure D.5
Queuing Models
The four queuing models here all assume:
Poisson distribution arrivals
FIFO discipline
A single-service phase
Queuing Models
Model
Name
Single-channel
system
(M/M/1)
Number
of
Channels
Single
Number
of
Phases
Single
Example
Information counter
at department store
Arrival
Rate
Pattern
Poisson
Service
Time
Population Queue
Pattern
Size
Discipline
Exponential Unlimited
FIFO
Queuing Models
Model
Name
Multichannel
(M/M/S)
Number
of
Channels
Multichannel
Number
of
Phases
Single
Example
Airline ticket
counter
Arrival
Rate
Pattern
Poisson
Service
Time
Population Queue
Pattern
Size
Discipline
Exponential Unlimited
FIFO
Queuing Models
Model
Name
Constantservice
(M/D/1)
Number
of
Channels
Single
Number
of
Phases
Single
Example
Automated car
wash
Arrival
Rate
Pattern
Poisson
Service
Time
Pattern
Constant
Population Queue
Size
Discipline
Unlimited
FIFO
Queuing Models
Model
Name
Limited
population
(finite population)
Number
of
Channels
Single
Number
of
Phases
Single
Example
Shop with only a
dozen machines
that might break
Arrival
Rate
Pattern
Poisson
Service
Time
Population Queue
Pattern
Size
Discipline
Exponential Limited
FIFO
Model A Single-Channel
1. Arrivals are served on a FIFO basis and
every arrival waits to be served
regardless of the length of the queue
2. Arrivals are independent of preceding
arrivals but the average number of
arrivals does not change over time
3. Arrivals are described by a Poisson
probability distribution and come from
an infinite population
Model A Single-Channel
4. Service times vary from one customer
to the next and are independent of one
another, but their average rate is
known
5. Service times occur according to the
negative exponential distribution
6. The service rate is faster than the
arrival rate
Model A Single-Channel
=
Mean number of arrivals per time
period
=
Mean number of units served per
time period
Ls =
Average number of units
(customers)
in the system (waiting and being
served)
=
1
W
s =
Average time a unit spends in the
system (waiting time plus service time)
=
Model A Single-Channel
Lq
=
Average number of units waiting
in the queue
2
( = )
Wq =
Average time a unit spends
waiting in the queue
( = )
p
=
=
Model A Single-Channel
P0 =
Probability of 0 units in the
system (that is, the service unit is idle)
=
1
Pn > k
=
Table D.3
Single-Channel Example
2
3-2
1
3-2
2
( )
= 2 cars arriving/hour
= 3 cars serviced/hour
Ls
=
=
= 2 cars
in the system on average
Ws
=
=
= 1
22 hour average waiting time in
3(3 - 2) the system
Lq
=
=
1.33 cars waiting in line
Single-Channel Example
( )
2
3(3 - 2)
= 2 cars arriving/hour
= 3 cars serviced/hour
Wq
=
=
= 2/3 hour = 40 minute
average waiting time
p = / = 2/3 = 66.6%
is busy
P0 = 1 of
- time=mechanic
.33 probability
there are 0 cars in the system
Single-Channel Example
Probability of more than k Cars in the System
k
Pn > k = (2/3)k + 1
.667
P0 = 1 - .33
1
2
3
.444
.296
.198
Implies that there is a 19.8%
chance that more than 3 cars are in the
system
.132
.088
.058
4
5
6
Single-Channel Economics
Customer dissatisfaction
and lost goodwill
Wq
Total arrivals
Mechanics salary
Total hours
customers spend
waiting per day
2
2
(16) = 10
hours
3
3
10 10
2
3
= Rs. 106.67
Multi-Channel Model
M
=
number of channels
open
=
average arrival rate
=
average service rate at
1
each
channel
P0 = M 1
for M >
n
M
M
1
1
+
n!
M! M -
n=0
( /)
Ls =
P +
2 0
(M - 1)!(M - )
Multi-Channel Model
Ls
1
Ws =
P +
=
2 0
(M - 1)!(M - )
M
( /)
Lq = Ls
Lq
1
Wq = Ws
=
Multi-Channel Example
= 2
P0 =
n=0
Ws =
3/4
2
M = 2
Ls =
= 3
1
n!
2
3
(2)(3(2/3)2
1! 2(3) - 2
3
=
8
1
+
2!
1
2
2
+ 3
2
3
=
2(3)
1
2
2(3) - 2
3
4
1
2
3
Lq =
=
12
3
4
Wq =
.083
2
= .0415
Multi-Channel Example
Single Channel
Two Channels
P0
.33
.5
Ls
2 cars
.75 cars
Ws
60 minutes
22.5 minutes
Lq
1.33 cars
.083 cars
Wq
40 minutes
2.5 minutes
.10
.0111
.25
.0833
.0039
.50
.5000
.0333
.0030
.75
2.2500
.1227
.0147
1.0
.3333
.0454
.0067
1.6
2.8444
.3128
.0604
.0121
2.0
.8888
.1739
.0398
2.6
4.9322
.6581
.1609
1.5282
.3541
3.0
4.0
2.2164
Lq
Wq =
M
1
Number
in queue
8.1
Time in queue
.45 hrs, 27 minutes
2 windows
.2285
3 windows
.03
4 windows
.0041
Constant-Service Model
Average length
of queue
Lq =
2( )
Wq =
Average number of
customers in system
Ls = Lq +
Average time
in the system
2( )
Ws = Wq +
Constant-Service Example
Trucks currently wait 15 minutes on average
Truck and driver cost $60 per hour
Automated compactor service rate () = 12 trucks per hour
Arrival rate ( ) = 8 per hour
Compactor costs $3 per truck
Current waiting cost per trip = (1/4 hr)($60) = $15 /trip
1
8
Wq =
=
hour
12
2(12)(12 8)
Waiting cost/trip = (1/12 hr wait)($60/hr cost)
with compactor
Savings with
= $15 (current) $5(new)
new equipment /trip
Cost of new equipment amortized
Net savings
= $ 5 /trip
= $10
= $ 3 /trip
= $ 7 /trip
Limited-Population Model
T
Service factor: X =
T+U
Average number running: J = NF(1 - X)
Average number waiting: L = N(1 - F)
Average number being serviced: H = FNX
T(1 - F)
Average waiting time: W =
XF
Number of population: N = J + L + H
Limited-Population Model
D = Probability that a unit
will havefactor:
to wait inX =
Service
queue
N = Number of potential
T
customers
T+U
F = Average
Efficiencynumber
factor
T = JAverage
service
running:
= NF(1
- X) time
H = Average
Average number
of waiting:
units U =LAverage
number
= N(1 time
- F) between
being served
unit service
requirements
Average number being serviced:
H = FNX
T(1 - Ftime
) a unit
J = Average number of units W = Average
Average
waiting
not in queue
or in time: W = waitsXF
in line
service bay
of population:
N= =Service
J+L+
H
L = Number
Average number
of units X
factor
waiting for service
M = Number of service
channels
.012
.048
.999
.025
.100
.997
.050
.198
.989
.060
.020
.999
.237
.983
.027
.999
.275
.977
.035
.998
.313
.969
.044
.998
.350
.960
.054
.997
.070
.080
.090
Table D.8
.100
Limited-Population Example
Each of 5 printers requires repair after 20 hours (U) of use
One technician can service a printer in 2 hours (T)
Printer downtime costs $120/hour
Technician costs $25/hour
2
Service factor: X =
= .091 (close to .090)
2 + 20
For M = 1, D = .350 and F = .960
For M = 2, D = .044 and F = .998
Average number of printers working:
For M = 1, J = (5)(.960)(1 - .091) = 4.36
For M = 2, J = (5)(.998)(1 - .091) = 4.54
Limited-Population Example
Average
Average
Numberrequire Cost/Hr
for 20 Cost/Hr
Each of 5 printers
repair after
hours (for
U) of use
Number
Printers
Total
One of
technician
can serviceDowntime
a printer in 2Technicians
hours (T)
Technicians
Down (N - J)
(N - J)$120
($25/hr)
Cost/Hr
$25.00
$101.80
2 $55.20
$50.00to .090)
$105.20
=
= .091 (close
2 + 20
For M = 1, D = .350 and F = .960
2
.46 X
Service
factor: