Queuing and Transportation: Transportation Logistics Prof. Goodchild Spring 2009
Queuing and Transportation: Transportation Logistics Prof. Goodchild Spring 2009
Transportation Logistics
Prof. Goodchild
Spring 2009
Two ways to address queues
• Server — can only service one customer at a time; length of time to provide service
depends on type of service;
• Service time: time for server to serve one customer (amount of time you are delayed if no
one else present)
• Queue — customers that have arrived at server but are waiting for their service to start are
in the queue.
• FIFO
– Traffic
– intersection
• LIFO
– Elevator
– Airplane
• Random
– Fluids
• Priority
Transportation Applications
• Traffic congestion
• Being serviced at:
– Border
– Toll plaza
– Bus stop
– Goods waiting at a distribution center
– Marine terminal
– ….
Activated
Upstream of bottleneck/server Downstream
Arrivals Departures
Server/bottleneck
Direction of flow
Not Activated
Arrivals Departures
server
Flow Analysis
• Bottleneck active
– Service rate is capacity
– Downstream flow is determined by bottleneck
service rate
– Arrival rate > departure rate
– Queue present
Flow Analysis
Arrival
Rate
Maximum queue
Maximum delay
Queue at time, t1
t1 Time
Queue Notation
Number of
Arrival rate servers
X /Y / N
Departure rate
• Popular notations:
– D/D/1, M/D/1, M/M/1, M/M/N
– D = deterministic
– M = other distribution
Poisson Distribution
• Good for modeling random events
– Standard deviation equals the mean
• Count distribution
– Uses discrete values
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
Example Graph
0.25
0.20
Probability of Occurance
0.15
0.10
0.05
0.00
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Arrivals in 15 minutes
Example Graph
0.25
0.15
0.10
0.05
0.00
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Arrivals in 15 minutes
• If we assume Poisson arrival process
• Inter-arrival times are exponentially
distributed
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
Time Between Arrivals (minutes)
Little’s Formula (1961)
E () E ( )
• T = time spent by a customer in the queueing system
• = arrival rate
• N = number of customers in the system
• 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
• D/D/1
– Average length of queue
• 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
items
time
Can’t store extra capacity
Delay will be very different depending on the arrival PATTERN, not just
number of arrivals
limitations
• Marine terminal
• Rail infrastructure
• International border
• Airport terminal
Port gate and terminal stacks
Stacks
Gate
Observed data
Theoretical wait times
0.1
0.09
0.08
0.07
0.06
Wait time
0.05
0.04
0.03
0.02
0.01
0
10 15 20 25 30 35 40 45 50 55 60 65 70 75 80
Arrival rate
Rail line as server
Average Annual Delay (container hours per through container)
18.00
16.00
Container hours delay per
14.00
container through
12.00
10.00 7 days a week operation
8.00 5 days a week operation
6.00
4.00
2.00
-
1,000,000 2,000,000 4,000,000
TEU throughput
Bottleneck activation
Airport of the Future
• Allows travelers to
enter mid-stream
Change in terminal processing
B B B B B B
K K K K K K K K K K K K
Baggage flow
Queue approaching the counter
B B
P
B B
B B
B B
K K K K K K K K
P
Previous system
K B
K B
K B
Airport of the future
K B
K B
K B
Service times got worse!
Does not include wait time, only measured from arrival at check-in desk
Total times do improve with AF