Trip Distribution
Trip Distribution
Trip Distribution
Trip distribution
Delft
University of
Technology
Transport Destination
Trip distribution
networks choice
Travel Mode
Modal split choice
resistances
Time
Period of day choice
Route
Assignment choice
Travel times
network loads
etc.
CIE4801: Trip distribution 4
Topics to study sections 5.1-5.6
• What does this modelling component do? What’s its output and
what’s its input? How does it fit in the framework?
• Do you understand the definitions?
• OD-matrix, production, attraction, generalised costs, deterrence
function
• Do you understand the modelling methods?
• Growth factor: singly and doubly constrained
• Gravity model
• Logic for “borrowing” from Newton or Entropy maximisation?
• Do you understand the iterative algorithm?
• Do you understand the calibration of the model?
• Deterrence function (Hymann’s method)
• Do you understand tri-proportional fitting (“bins”)?
• Are these models appropriate?
CIE4801: Trip distribution 5
2.1
Trip distribution: definitions
production
zone j
zone 1
total
…
…
…
zone 1
…
zone i
From: …
…
total attraction
distribution function
describes the relative willingness to make a trip
f as a function of the travel costs.
bike
distance
10km 50km
CIE4801: Trip distribution 9
Requirements for distribution functions
F ( a × cij )
• Fraction depends on value of cij
F ( cij )
travel cost
CIE4801: Trip distribution 11
2.2.1
Trip distribution models:
Method 1: Growth models
• trip observations
base
• outcomes of (older) model
matrix • calibrated using traffic counts
predicted
matrix
Advantages
• Network specific peculiarities can be captured by
observations
• A base matrix is more understandable and verifiable
than a model
Disadvantages
• New residential zones are difficult to capture
• Historical patterns may change over time
• Scale this adapted base year matrix to the future production and
attraction using appropriate factors ai and bj
(see also slides 2.2.2, replace Fij by Tij (i.e prior OD-matrix),
and example on slides 2.3)
mi
dij
mj
Gij = gravitational force between i and j
g = gravitational constant
mi , m j = mass of planet i (j respectively)
dij = distance between i and j
CIE4801: Trip distribution 18
The gravity model
Assumptions:
Number of trips between an origin and a destination zone
is proportional to:
• a production ability factor for the origin zone
• an attraction ability factor for the destination zone
• a factor depending on the travel costs between the zones
Mathematical formulation:
Tij = r Qi X j Fij Tij = # trips from zone i to zone j
r = measure of average trip intensity
Qi = production potential of zone i
X j = attraction potential of zone j
Fij = willingness to travel from i to j
Possible interpretations of Qi and Xj: populations, production & attraction, …
CIE4801: Trip distribution 19
Singly constrained model
åT
j
ij = Pi
åT = å ( rQ X
j
ij
j
i j Fij ) = r Qi å ( X j Fij ) = Pi
j
Pi
Þ Qi =
r å X j Fij
j
Pi
Þ Tij = r X j Fij = ai Pi X j Fij
r å X j Fij
j ( ai = balancing factor)
åT
i
ij = Aj
åT = å ( rQ X
i
ij
i
i j Fij ) = r X j å ( Qi Fij ) = Aj
i
Aj
Þ Xj =
r å Qi Fij
i
Aj
Þ Tij = r Qi Fij = b j Qi Aj Fij
r å Qi Fij
i ( b j = balancing factor)
åT ij = Pi and åT
i
ij = Aj
j
Tij = r Qi X j Fij
åT
i
ij = Aj
åT
j
ij = Pi
åT = å ( rQ X
j
ij
j
i j Fij ) = r Qi å ( X j Fij ) = Pi
j
åT = å ( rQ X
i
ij
i
i j Fij ) = r X j å ( Qi Fij ) = Aj
i
Pi Aj
Þ Qi = and Xj =
r å ( X j Fij ) r å ( Qi Fij )
j i
Pi Aj 1
Þ Tij = r × Fij = ai b j Pi Aj Fij
r å X j Fij r å Qi Fij ρ
j i
ai = balancing factor
b j = balancing factor
åT ij = Aj
Replace by logarithm
æ ö
( ( ))
i
Max ln w (Tij ) = Max ç ln (T !) - å ln (Tij !) ÷
åå T
i j
ij × cij = C
è ij ø
H T
C
æ ö æ ö æ ö
ln (T !) - å ln (Tij !) + å li × ç Pi - å Tij ÷ + å l j × ç Aj - å Tij ÷ + b × ç C - åå Tij × cij ÷
ij i è j ø j è i ø è i j ø
Use as approximation
¶ ln ( N !)
ln ( N !) » N × ln ( N ) - N Þ » ln ( N )
¶N
Set derivatives equal to zero and solve the equation
¶L
= - ln (Tij ) - li - l j - b × cij = 0
¶Tij Note that the other derivatives
- li - l j - b ×cij -l j - b ×cij
lead to the orginal constraints
Þ Tij = e = e - li × e ×e
å Tij = å e = e - li å e
- li - l j - b ×cij - l j - b ×cij
= Pi
j j j
1
Þ e - li = × Pi = ai × Pi
åe
- l j - b ×cij
100
200
250
Aj 220
200 165
150 165
150
1 3 3 100
3 1 1 200
2 2 1
250
Aj 220
200 165
150 165
150
31.1 3.0
1 3.0
1 200
21.8 1.8
2 3.0
1 250
Fij = f (cij )
Aj 220
200 165
150 165
150 = 5 × exp(-0.5 × cij )
Aj 220
200 165
150 165
150
Aj 220
200 165
150 165
150
220 165 165
´ ´ ´
156.8 173.9 219.3 CIE4801: Trip distribution 37
Trip distribution using the gravity
model
3
1 2
3
2 1
3 2 Trip balancing
3
Pi Travel costs cij
Willingness Fij
80.8 20.1 15.9 100
Balancing factors ai , b j
Aj 220
200 165
150 165
150
Aj 220
200 165
150 165
150
No OD-information available
Given:
- Observed trip production
- Observed trip attraction
- Cost matrix
- Observed mean trip length (MTL)
Given: Pi =
3 11 18 22 400
12 3 13 19 460
cij = 400
15 13 5 7
24 18 8 5 702
Observed: MTL = 10
156 99 68 77 400
58 204 103 95 460 3 11 18 22
26 45 138 191 400 12 3 13 19
cij =
20 52 191 439 702 15 13 5 7
24 18 8 5
Aj 260 400 500 802
• Cost functions
• Your definition in time, cost, length plus…..
• When an aggregate level is used, costs should be aggregated as well
Tij !
• For a set of N observations nij the likelihood becomes
e
( ( ))
- c×Qi × X j × Fk cij
(c × Q × X j × Fk ( cij ) )
nij
ån ij
( ) Õ
p {nij } | Qi , X j , Fk ( cij ) =
i , jÎN
i
nij !
,c = ijÎN
Tˆ
365
160 150 230
95
0 4 8 12 16 20 24
distance Pi =
3 11 18 22 400
10 3 13 19 460
cij = 400
F (cij ) 15 13 5 7
24 18 6 5 702
? distribution function
? Aj = 260 400 500 802
?
?
?
?
distance
0 4 8 12 16 20 24
1 1 1 1 400 ´100
1 1 1 1 460 ´115
1 1 1 1 400 ´100
1 1 1 1 702 ´175.5
distance
0 4 8 12 16 20 24
distance
0 4 8 12 16 20 24
# predicted
3 11 18 22
731
cij =
10 3 13 19
15 13 5 7 433
24 18 6 5 251 257
147 143
distance
0 4 8 12 16 20 24
# predicted
# observed
Scale the distribution
values such that they
represent the OTLD
distance
0 4 8 12 16 20 24
3 11 18 22 2.5
cij =
10 3 13 19
15 13 5 7 1.3
1.1
24 18 6 5 0.6 0.5 0.4
distance
0 4 8 12 16 20 24
132 92 54 61 400
68 233 70 100 460
32 49 134 215 400
34 76 235 377 702
Aj 260 400 500 802
• Just test which function yields the best fit with the function values
• Function type and parameters
• In practice it’s likely that you have to choose for which range of
costs the fit is best
• “One size doesn’t fit all”
Given: Given:
• Cost matrix • Cost matrix
• Production and atraction • (partial) observed OD-matrix
• Mean trip length
Thus also known:
Assumed: • (partial) production and
• Type of distribution function attraction
• Totals per “bin” for the travel
Estimated: costs
• Qi, Xj and parameter
distribution function Estimated:
Qi, Xj and Fk
exp( bV j )
Tij = Pi , V j = q1 X j - q 2cij
å exp(bV )
k
k
• Inhabitants
• Households
• Jobs
• Retail jobs
• Students
• Densities
• Location types
• Etc.
T
= × exp(- b N i ) × exp( b N j ) × exp(- bq 2 cij )
å exp(bVrs )
rs
CIE4801: Trip distribution 65
2.7
Trip distribution
Practical issues
• Intra-zonal trips
• Similar or different?
• Simply put:
distribution function is input and trip length distribution is output!
• Size issue
• Very large zones => high values for production and attraction
=> intrazonal trips? => small errors lead to large differences
• Cordon models
• Through traffic follows from other source, e.g. license plate survey or
other model => through traffic is thus fixed input and should not be
modelled using trip distribution models