Professional Documents
Culture Documents
Queueing Systems: Lecture 4
Queueing Systems: Lecture 4
Amedeo R. Odoni
Lecture Outline
• M/G/1: a simple example
• Introduction to systems with priorities
• Representation of a priority queuing system
• The M/G/1 non-preemptive priority system
• An important optimization theorem
• … and an important corollary
• Brief mention of other priority systems
• Bounds for G/G/1 systems
ρ 2 + λ 2 ⋅ σ S2
L = ρ + ( ρ < 1)
2(1 − ρ )
ρ 2 + λ2 ⋅ σ S2
1
W = +
μ 2λ (1 − ρ )
ρ 2 + λ2 ⋅ σ S2 ρ 2 (1 + C S2 ) 1 ρ (1 + C S2 )
Wq = = = ⋅ ⋅
2λ (1 − ρ ) 2λ (1 − ρ ) μ (1 − ρ ) 2
ρ 2 + λ2 ⋅ σ S2 σS
Lq = Note : C S = = μ ⋅σ S
2(1 − ρ ) E[ S]
Runway Example
• Single runway, mixed operations
• E[S] = 75 seconds; σS = 25 seconds
μ = 3600 / 75 = 48 per hour
• Assume demand is relatively constant for a
sufficiently long period of time to have
approximately steady-state conditions
• Assume Poisson process is reasonable
approximation for instants when demands
occur
Estimated expected queue length
and expected waiting time
λ (per hour) ρ Lq Lq Wq Wq
(% change) (seconds) (% change)
30 0.625 0.58 69
30.3 0.63125 0.60 3.4% 71 2.9%
Announcements
x x x 2
λ2
x k-1
λk−1
Service
λk k Facility
xxx x k+1
λk+1
λr xx r
μ
i =1 i i =1 i
E[ S i2 ] μ ⋅ E[S i2 ]
(W0 | i) = = i [random incidence, see (2.66)]
2 ⋅ E[ S i ] 2
r r ρ ⋅ μ ⋅ E[S 2 ] r λ ⋅ E[S 2 ]
Î W0 = ∑ ρ i ⋅ (W0 | i) = ∑ i i i
=∑ i i (1)
i =1 i =1
2 i =1
M i = λi ⋅Wqk (3)
A closed-form expression
k k −1
i =1 i =1
W0 + ∑ ρ i ⋅Wqi
Î i =1
Wqk = for k = 1, 2,......, r (4)
k −1
1− ∑ ρ i
i =1
(1 − a k −1 )(1 − a k ) i =1
Minimizing total expected cost
C = ∑ ci ⋅ Li = ∑ ci ⋅ ρ i + ∑ ci ⋅ λi ⋅Wqi (6)
i =1 i =1 i =1
c(t)
Cost
outflow
ck
ck
t1 t2 Time
A generalization
p
ρ i ⋅ E[S i2 ] (1 − a p ) ⋅ E[S 2p +1 ]
2
∑⋅ E[ S ]
+
2 ⋅ E[S p +1 ]
Wqk = i =1
i
for k ≤ p
(1 − a k −1 )(1 − a k )
Wqk = ∞ k > p
W q ≤ ( ρ < 1)
2 ⋅ (1 − ρ )
Better bounds
1+ ρ λ ⋅ (σ X2 + σ S2 )
B− ≤ Wq ≤ B = ( ρ < 1) (2)
2λ 2 ⋅ (1 − ρ )
• Note that the upper and lower bounds in (1) differ by,
at most, 1/λ and that the percent difference between
the upper and lower bounds decreases as ρ increases!