Documente Academic
Documente Profesional
Documente Cultură
Fall 2008
CEE 320
CEE 320
Anne Goodchild
Outline
1. Fundamentals
2. Poisson Distribution
3. Notation
4. Applications
5. Analysis
a. Graphical
b. Numerical
6. Example
Fall 2008
CEE 320
Fundamentals of Queuing Theory
• Arrivals
• Departures
• Service rate
Fall 2008
CEE 320
Activated
Upstream of bottleneck/server Downstream
Arrivals Departures
Server/bottleneck
Fall 2008
CEE 320
Direction of flow
Not Activated
Arrivals Departures
server
Fall 2008
CEE 320
Flow Analysis
• Bottleneck active
– Service rate is capacity
– Downstream flow is determined by bottleneck
service rate
– Arrival rate > departure rate
– Queue present
Fall 2008
CEE 320
Flow Analysis
• Arrivals
– Arrival rate (veh/sec)
• Uniform
• Poisson
– Time between arrivals (sec)
• Constant
• Negative exponential
• Service
– Service rate
– Service times
• Constant
Fall 2008
CEE 320
• Negative exponential
Queue Discipline
Maximum delay
Queue at time, t1
t1 Time
Fall 2008
CEE 320
Where is capacity?
Poisson Distribution
• Good for modeling random events
• Count distribution
– Uses discrete values
– Different than a continuous distribution
P n
t n
e t
n!
P(n) = probability of exactly n vehicles arriving over time t
n = number of vehicles arriving over time t
λ = average arrival rate
t = duration of time over which vehicles are counted
Fall 2008
CEE 320
Poisson Ideas
P0 Ph t
t 0
e t
e t e qt 3600
0!
Fall 2008
CEE 320
Example Graph
0.25
0.20
Probability of Occurance
0.15
0.10
0.05
0.00
Fall 2008
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
CEE 320
Arrivals in 15 minutes
Example Graph
0.25
0.15
0.10
0.05
0.00
Fall 2008
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
CEE 320
Arrivals in 15 minutes
Example: Arrival Intervals
1.0
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0.0
0 2 4 6 8 10 12 14 16 18 20
Fall 2008
CEE 320
Number of
Arrival rate nature service channels
X /Y / N
Departure rate nature
• Popular notations:
– D/D/1, M/D/1, M/M/1, M/M/N
– D = deterministic
– M = some distribution
Fall 2008
CEE 320
Queuing Theory Applications
• D/D/1
– Deterministic arrival rate and service times
– Not typically observed in real applications but
reasonable for approximations
• M/D/1
– General arrival rate, but service times
deterministic
– Relevant for many applications
• M/M/1 or M/M/N
– General case for 1 or many servers
Fall 2008
CEE 320
Queue times depend on variability
Fall 2008
CEE 320
Steady state assumption
• M/D/1
2
– Average length of queue Q
21
1
– Average time waiting in queue w
2 1
1 2
– Average time spent in system t
2 1
• M/M/1
2
– Average length of queue Q
1
1
– Average time waiting in queue w
1
– Average time spent in system t
• M/M/N
P0 N 1 1
– Average length of queue Q
N! N 1 N 2
Q 1
– Average time waiting in queue w
Q
– Average time spent in system t
Pn
0.20 veh min t
n
e 0.20veh min t
n!
Fall 2008
CEE 320
Exactly 2: P2
0.20 15 e 0.2015
2
0.224 22.4%
2!
Less than 2: Pn 2 P0 P1 0.1992
P(0)=e-.2*15=0.0498, P(1)=0.1494
• N=3
• Departure rate: μ = 3 seconds/person or 20 persons/minute
• Arrival rate: λ = 40 persons/minute
• ρ = 40/20 = 2.0
• ρ/N = 2.0/3 = 0.667 < 1 so we can use the other equations
• N=1
• Departure rate: μ = 6 seconds/person or 10
persons/minute
• Arrival rate: λ = 9 persons/minute
• ρ = 9/10 = 0.9