Professional Documents
Culture Documents
CE-444 Week-8 Queuing Theory PDF
CE-444 Week-8 Queuing Theory PDF
CE-444
Spring Semester 2012
Week # 8
Queuing Theory
Introduction
• Macroscopic relationships and analyses are
very valuable, but
• A considerable amount of traffic analysis
occurs at the microscopic level
• In particular, we often are interested in the
elapsed time between the arrival of successive
vehicles (i.e., time headway)
P ( n)
t e
n t
n!
Where:
P(n) = probability of having n vehicles arrive in time t,
t= duration of the time interval over which vehicles
are counted,
λ = average vehicle flow or arrival rate in vehicles
per unit time, and
e = base of the natural logarithm (e = 2.718).
Poisson Example
• Example:
– Consider a 1-hour traffic volume of 120 vehicles,
during which the analyst is interested in obtaining
the distribution of 1-minute volume counts
OR
2
2 e 1 0.1353
0
P(0) 0.1353
0! 1
TTE 4004: Transportation Engineering
Poisson Example
probability of exactly n vehicles # of 1-min intervals with
arriving in 1-min interval exactly n vehicle arrivals
21 e 2 2 0.1353
P(1) 0.2707 x 60 min = 16.24
1! 1
2 2 e 2 4 0.1353
P(2) 0.2707 x 60 min = 16.24
2! 2
23 e 2 8 0.1353
P(3) 0.1804 x 60 min = 10.82
3! 6
And so on…
10
8
6
4
2
0
0 1 2 3 4 5 6 7 8 9 10
# of veh arrivals/minute
q veh h veh
3600 sec h sec
qt Note:
1e 3600
e
qt
3600
x0 1
1 0! 1
Ph 8 1 Ph 8
qt
Ph 8 1 e 3600
360( 8 )
1 e 3600
1 0.4493
0.551
0.8 e^(-qt/3600)
Prob (h >= t)
0.6
0.4
0.2
0.0
0 5 10 15 20 25 30 35
Time (sec)
0.8
Probability (h < t)
0.6 1 - e^(-qt/3600)
0.551
0.4
0.2
0.0
0 5 8 10 15 20 25 30 35
Time (sec)
• Single channel/server
– One server for all queued customers
• Multiple channel/server
– Finite number of “identical” servers operating in a
parallel configuration
• Infinite-server
– A server for every customer
• Don’t we wish!
Non-traffic queuing examples
• Single channel/server
– Wendy’s, ATM
– Fast-food drive through
• Multiple channel/server (one arrival channel)
– Bank teller
– Airport check-in counter
– Burger King
• Multiple channel/server (multiple arrival channels)
– Grocery/retail store (Publix, Lowe’s, Wal-Mart)
– McDonald’s
Examples of different queue disciplines
(non-traffic)
• FIFO
– Bank teller line, McDonalds
• LIFO
– Elevator
– Cafeteria trays
• SIRO
– Teacher calling on raised hands
Examples of different queue disciplines
(non-traffic)
• Priority
– Sinking ship – women and children first
– Hospital waiting room – most injured first
– Getting bumped by “more important” people
(fancy restaurant)
Traffic Queuing Examples
• Left-turn bay length
• Number of approach lanes at a signal
controlled intersection
• Number of toll plaza booths
• Number of border crossing booths
Examples of different queue disciplines
(traffic)
• FIFO
– Traffic signal
• LIFO
– Queue departure behind bus
• Priority
– AWSC intersections
• Individual approaches are FIFO
• Between approaches, there is a priority
– Vehicle on right goes first
Right of Way – At Intersection
Parallel, Serial Queue Systems
• Parallel
– Toll booths
– Retail store checkout
– Some fast food restaurants
• Serial
– Cafeteria self service lines
– Opening night of a movie
• Ticket line, line to get into theater, line for snacks
Traffic Queuing Model Components
• Arrival Pattern
• Service/Departure Pattern
• Number of Departure Channels
• Queue discipline
Queuing Model Notation
• Arrival pattern/departure pattern/# of
departure channels
• alpha/alpha / #
• D for uniform, deterministic
• M for exponential, stochastic
• e.g., D/D/1, M/M/2
Statistics of Interest
• Average queue length
• Average number in system
• Maximum queue length
• Average waiting time in queue
• Average time in system
Types of Arrival and Departure
queuing
• D/D/1
• M/D/1
• M/M/1
• M/M/N
D/D/1 Queuing
• deterministic arrivals and departures with one
departure channel (D/D/1 queue)
• Where:
– ρ = traffic intensity, and is unitless,
– λ = average arrival rate in vehicles per unit time, and
– μ = average departure rate in vehicles per unit time.
• assuming that ρ is less than 1, it can be shown that for
an M/D/1 queue the following queuing performance
equations apply,
ρ n P0
Pn = n-N for n N
N N!
• probability of waiting in a queue (the probability that the
number of vehicles in the system is greater than the number
of departure channels),
P0 ρ N+1
Pn N =
N! N 1 ρ N