Lecture 5 Queing Theory
Lecture 5 Queing Theory
• Queuing Equations
Let
λ = mean number of arrivals per time period
μ = mean number of customers or units
served per time period
• The same time period must be used for the arrival rate
and service rate
Single-Channel Model, Poisson
Arrivals and Exponential Service
Times (M /M /1) (4 of 6)
Left parenthesis, M slash M slash 1, right parenthesis.
2 2
L = 2 cars in the system on average
3–2 1
1 1
W = 1 hour that an average car spends in
3 – 2 the system
Amin’s Muffler Shop(2 of 12)
2 22 4
Lq = 1.33 cars waiting in line on
( ) 3(3 – 2) 3(1) average
2
Wq hour = 40 minutes average waiting
( ) 3
time per car
2
0.67 = percentage of time
3 mechanic is busy
2
P0 1 1 – 0.33 = probability that there are 0
3
cars in the system
Amin’s Muffler Shop(3 of 12)
• Probability of more than k cars in the system
Amin’s Muffler Shop(4 of 12)
• 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
2 2
L 1 car in the system on the average
4–2 2
1 1 1/2 hour that an average car spends in the system
W
4 – 2
Amin’s Muffler Shop (9 of 12)
2 22 4
Lq 1/ 2 car waiting in line on the average
( ) 4(4 – 2) 8(1)
1
Wq hour 15 minutes average waiting time per car
( ) 4
2 percentage of time mechanic is busy
0.5
4
2
P0 1 1 – 0.5 probability that there are 0 cars in
4
the system
Amin’s Muffler Shop (10 of 12)
–Probability of more than k cars in the system
Pn >k = 2 4
k +1
k P sub n greater than k equals, left parenthesis, 2 over 4, right parenthesis, super k plus 1.
0 0.500
1 0.250
2 0.125
3 0.062
4 0.031
5 0.016
6 0.008
7 0.004
Amin’s Muffler Shop (11 of 12)
– The customer waiting cost is the same $50 per hour
Total daily waiting cost = 8 hours per day w qCw
(1 of 3)
• Constant service times are used when customers or units
are processed according to a fixed cycle
• The values for Lq ,Wq , L, and W are always less than they
would be for models with variable service time
– Both average queue length and average waiting time
are halved in constant service rate models
Constant Service Time Model (M /D /1) Left parenthesis, M slash D slash 1, right parenthesis.
(2 of 3)
(3 of 3)
L Lq