Documente Academic
Documente Profesional
Documente Cultură
Fall 2008
Queuing
CEE 320
Anne Goodchild
Outline
1.
2.
3.
4.
5.
Fundamentals
Poisson Distribution
Notation
Applications
Analysis
a. Graphical
b. Numerical
CEE 320
Fall 2008
6. Example
CEE 320
Fall 2008
Arrivals
Departures
Service rate
Activated
Upstream of bottleneck/server
Arrivals
Departures
CEE 320
Fall 2008
Server/bottleneck
Direction of flow
Downstream
Not Activated
Arrivals
Departures
CEE 320
Fall 2008
server
Flow Analysis
Bottleneck active
CEE 320
Fall 2008
Flow Analysis
Bottle neck not active
CEE 320
Fall 2008
CEE 320
Fall 2008
http://trafficlab.ce.gatech.edu/freewayapp/
RoadApplet.html
Service
Service rate
Service times
CEE 320
Fall 2008
Constant
Negative exponential
Queue Discipline
First In First Out (FIFO)
prevalent in traffic engineering
CEE 320
Fall 2008
Departure
Rate
Arrival
Rate
Vehicles
Maximum delay
Total vehicle delay
CEE 320
Fall 2008
Queue at time, t1
t1
Time
Where is capacity?
Poisson Distribution
Good for modeling random events
Count distribution
Uses discrete values
Different than a continuous distribution
t
P n
e
n!
CEE 320
Fall 2008
Poisson Ideas
Probability of exactly 4 vehicles arriving
P(n=4)
CEE 320
Fall 2008
t
P 0 P h t
e
0!
e t e qt 3600
Example Graph
0.25
Probability of Occurance
0.20
0.15
0.10
0.05
CEE 320
Fall 2008
0.00
0
10
11
12
13
Arrivals in 15 minutes
14
15
16
17
18
19
20
Example Graph
0.25
0.20
0.10
0.05
CEE 320
Fall 2008
0.00
0
10
11
12
13
Arrivals in 15 minutes
14
15
16
17
18
19
20
Probability of Excedance
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
CEE 320
Fall 2008
0.0
0
10
12
14
16
18
20
Queue Notation
Number of
service channels
X /Y / N
Departure rate nature
Popular notations:
CEE 320
Fall 2008
M/D/1
General arrival rate, but service times
deterministic
Relevant for many applications
M/M/1 or M/M/N
CEE 320
Fall 2008
CEE 320
Fall 2008
M/D/1
Average length of queue
2
Q
21
CEE 320
Fall 2008
1 2
t
2 1
1.0
M/M/1
Average length of queue
2
Q
1
CEE 320
Fall 2008
1.0
M/M/N
Average length of queue
N 1.0
P0 N 1
1
Q
2
N ! N 1 N
Q 1
CEE 320
Fall 2008
N ! 1 N
nc 0 nc !
N 1.0
CEE 320
Fall 2008
P0
P0
Pn n N
for n N
Pn
for n N
N N!
n!
Probability of being in a queue
P0 N 1
Pn N
N ! N 1 N
= arrival rate = departure rate =traffic intensity
CEE 320
Fall 2008
n!
Example Calculations
Exactly 2:
Less than 2:
0.20 15 e 0.20 15
P 2
2!
0.224 22.4%
P n 2 P 0 P1 0.1992
P(0)=e-.2*15=0.0498, P(1)=0.1494
CEE 320
Fall 2008
More than 2:
P n 2 1 P 0 P1 P 2 0.5768
Example 1
You are entering Bank of America Arena at Hec Edmunson Pavilion to
watch a basketball game. There is only one ticket line to purchase
tickets. Each ticket purchase takes an average of 18 seconds. The
average arrival rate is 3 persons/minute.
CEE 320
Fall 2008
Find the average length of queue and average waiting time in queue
assuming M/M/1 queuing.
Example 1
Departure rate: = 18 seconds/person or 3.33
persons/minute
Arrival rate: = 3 persons/minute
= 3/3.33 = 0.90
Q-bar = 0.902/(1-0.90) = 8.1 people
W-bar = 3/3.33(3.33-3) = 2.73 minutes
CEE 320
Fall 2008
Example 2
You are now in line to get into the Arena. There are 3 operating
turnstiles with one ticket-taker each. On average it takes 3 seconds
for a ticket-taker to process your ticket and allow entry. The average
arrival rate is 40 persons/minute.
CEE 320
Fall 2008
CEE 320
Fall 2008
Example 2
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
Example 3
You are now inside the Arena. They are passing out Harry the Husky
doggy bags as a free giveaway. There is only one person passing
these out and a line has formed behind her. It takes her exactly 6
seconds to hand out a doggy bag and the arrival rate averages
9 people/minute.
CEE 320
Fall 2008
Find the average length of queue, average waiting time in queue, and
average time spent in the system assuming M/D/1 queuing.
Example 3
N=1
Departure rate: = 6 seconds/person or 10
persons/minute
Arrival rate: = 9 persons/minute
= 9/10 = 0.9
CEE 320
Fall 2008
CEE 320
Fall 2008
Primary References