1.225 J (ESD 225) Transportation Flow Systems
1.225 J (ESD 225) Transportation Flow Systems
225J
1.225J (ESD 225) Transportation Flow Systems
Lecture 8
Lecture 8 Outline
Introduction to Queueing
Conceptual Representation of Queueing Systems
Codes for Queueing Models
Terminology and Notation
Little’s Law and Basic Relationships
Exponential Distribution for Interarrival and Service times Modeling
State Transition Diagram
Derivation of waiting characteristics for M/M/1
Summary
Cost
Total cost
Optimal
cost Cost of building the capacity
2
Strengths and Weaknesses of Queueing Theory
C
Arrival point Departure point
at the system C from the system
Queue C
Source
of users/ C C C C C C C
customers
C
C
C
Arrivals
process
Size of Queue discipline and Service process Number of servers
user source Queue capacity
1.225, 11/26/02 Lecture 8, Page 6
Queueing Queueing
system system
2 3
Queueing
system
4
Little’
Little’s Law
A(t)
N(t)
C(t)
t T Time
T T
∫
LT = 0
N (t )dt
=
A(T ) ∫0 N (t ) dt
⋅ = λT ⋅ WT
1.225, 11/26/02
T T A(T ) Lecture 8, Page 11
αe −αt , t ≥ 0
• Density function : fT (t) =
0 , t < 0
1 1
• P{0 ≤ T ≤ t} = 1− e −αt , E (T ) = , var(T ) =
α α2
∞
xk
• e x = 1+ x + ∑
k =2 k!
∞
(−α ∆t) k
• P{0 ≤ T ≤ ∆t} = 1− e −α ∆t = 1− (1− α ∆t + ∑
)
k =2 k!
During ∆t:
µ µ µ µ µ µ µ
7
Observing State Transition Diagram from Two Points
From point 1:
µ µ µ µ µ µ µ
From point 2:
µ µ µ µ µ µ µ
Derivation of P0 and Pn
2 n
λ λ λ
Putting it all together: P1 = P0 , P2 = P0 , L, Pn = P0
µ µ µ
n
∞ ∞
λ 1
Since ∑ Pn = 1, ⇒ P0 ∑ = 1 ⇒ P0 =
n =0 µ
n
∞
λ
∑
n =0
n =0 µ
n
λ ∞
λ ∞
1− ρ ∞ 1
Let ρ =
µ
, then ∑ = ∑ ρ n =
n= 0 µ − ρ
=
− ρ
(Q ρ < 1)
n =0 1 1
1
Therefore, P0 = ∞
= 1− ρ and Pn = ρ n (1 − ρ )
∑ρ
n =0
n
d ∞ n d 1
= (1 − ρ ) ρ ∑ ρ = (1 − ρ ) ρ
dρ n = 0 dρ 1 − ρ
λ
1 ρ µ λ
= (1 − ρ ) ρ =
2
= =
λ
(1 − ρ ) (1 − ρ ) 1 − µ µ − λ
L λ 1 1
•W= = ⋅ =
λ µ −λ λ µ −λ
1 1 1 λ
• Wq = W − = − =
µ µ −λ µ µ (µ − λ )
λ λ2
• Lq = λ Wq = λ ⋅ =
µ (µ − λ ) µ (µ − λ )
Lecture 8 Summary
Introduction to Queueing
Conceptual Representation of Queueing Systems
Codes for Queueing Models
Terminology and Notation
Little’s Law and Basic Relationships
Exponential Distribution for Interarrival and Service times Modeling
State Transition Diagram
Derivation of waiting characteristics for M/M/1