Queueing Systems: Lecture 3: Announcements
Queueing Systems: Lecture 3: Announcements
Amedeo R. Odoni
Announcements
• PS #3 due tomorrow by 3 PM
• Office hours – Odoni: Wed, 10/18, 2:30-4:30;
next week: Tue, 10/24
• Quiz #1: October 25, open book, in class;
options: 10-12 or 10:30-12:30
• Old quiz problems and solutions: posted Thu
evening along with PS #3 solutions
• Quiz coverage for Chapter 4: Sections 4.0 –
4.6 (inclusive); Prof. Barnett’s lecture NOT
included
Lecture Outline
• Remarks on Markovian queues
• M/E2/1 example
• M/G/1: introduction, epochs and transition
probabilities
• M/G/1: derivation of important expected values
• Numerical example
• Introduction to M/G/1 systems with priorities
N' = N + R – 1 if N > 0
N' = R if N = 0
• Note: make sure to understand how R is defined
Epochs and the value of R
t
t1 t2 t3 t4 t5 t6
t
I B I B I B
• Clearly:
T = T1 + T2 + T3
• E[T3] = E[S]
• Given that there are already n customers in the system
when j arrives (and since one customer is being served
while n–1 are waiting)
E[T2 | n] = (n −1) ⋅ E[S] , n ≥ 1
E[T2 | n] = 0, n = 0
• Thus,
⎡ ⎤
E[T2 ] = ∑ E[T2 | n] ⋅ Pn = ∑ (n −1) ⋅ E[S] ⋅ Pn = E[S] ⋅⎢ ∑ nPn − ∑ Pn ⎥
n n≥1 ⎢⎣n≥1 n≥1 ⎥⎦
σ S2 + ( E[ S ]) 2
E[T1
| n] = , n ≥1
2 ⋅ E[ S ]
E[T1 | n] = 0, n = 0
• Thus, giving:
σ S2 + ( E[ S ]) 2 σ S2 + ( E[ S ]) 2
E[T1 ] = ∑ E[T1 | n] ⋅ Pn = ∑ ⋅ Pn = ⋅ρ
n n≥1 2 ⋅ E[ S ] 2 ⋅ E[ S ]
Derivation of L and W: M/G/1 [4]
• So we finally have:
ρ 2 + λ 2 ⋅ σ S2
L=ρ+ ( ρ < 1)
2(1 − ρ )
ρ 2 + λ 2 ⋅ σ S2
1
W = +
μ 2λ (1 − ρ )
ρ 2 + λ 2 ⋅ σ S2
L=ρ+ ( ρ < 1)
2(1 − ρ )
1 ρ 2 + λ2 ⋅ σ S2
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]
Dependence on Variability (Variance)
of Service Times
Expected delay
Demand
ρ = 1.0
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%
x x x 2
λ2
x k-1
λk−1
Service
λk k Facility
xxx x k+1
λk+1
λr xx r