3 RouteAndLocationChoice Special
3 RouteAndLocationChoice Special
3 RouteAndLocationChoice Special
I. I NTRODUCTION
A. Problem statement
The problem of traffic monitoring and prediction has been
considered by many researchers. Various approaches are
data-driven [16], [17], [28], while others adjust structural
models to real world measurements. The latter group can
further be classified with respect to what quantities are
estimated: Some consider the problem of estimating physical
traffic flow properties such as densities, velocities, or flow
parameters [20], [27], while others (including this work)
concentrate on the underlying demand itself and consider the
physics of traffic flow as a dependent effect [2], [21], [26].
The second point of view is closer to the real problems
structure, since traffic demand is the cause of road usage.
Still, estimation of traffic demand and network link related
quantities are two aspects of the same problem and ultimately
should not be separated [1].
This article describes a method for traffic state estimation
that uses multi-agent simulations. We combine a flexible
but little formalized representation of individual mobility
behavior as implemented in the MATSim project [11] with
well understood methods of system engineering [19]. This
allows us to consider the problem of estimating agents
route and activity location choice in a Bayesian setting by
combining for every agent an a priori activity plan for a given
day with anonymous traffic measurements such as flows or
densities into a most likely a posteriori plan.
Our work appears to be the first in this field which estimates fully individualized behavior from anonymous traffic
measurements. The choice of this objective is justified by the
observation that traffic demand results from heterogeneous
individual mobility needs. Thus, no validated individualized
*Gunnar Fltterd is with the Group for Transport Systems Planning and Transport Telematics, Technische Universitt Berlin, D-10587
Berlin, Germany. Tel: +49-30-314-29520, fax: +49-30-314-26269, mail:
floetteroed@vsp.tu-berlin.de.
**Kai Nagel is head of the Group for Transport Systems Planning and
Transport Telematics, mail: nagel@vsp.tu-berlin.de.
B. Conceptual overview
The traffic model is decomposed into a microscopic representation of traveler behavior and a mixed micro/macro
mobility simulation.
Some aspects of the overall simulation setting are depicted
in Figure 1 (left). In an attempt to realize their individual
activity plans, travelers consider their long- and short-term
observations of the traffic system when performing actions
within their physical environment. Technically, an agent
modifies its current path by sending an object representing
its perceived cost of network link usage to a router, which
then returns the resulting best path. Note that this cost is
individually perceived and can contain perception errors as
well as incomplete knowledge.
The behavioral estimation procedure results from reasonable mathematical inference but can be conveniently illustrated as in Figure 1 (right). The simulation structure is not
changed at all. The estimation algorithm compares the output
of the mobility simulation and a traffic surveillance system.
Based on this comparison, it modifies the cost perception any
agent sends to the router in such a way that it corresponds to
the agents behavioral improbability. The resulting behavior
is different insofar as it is not optimal with respect to the
agents goals any more, but rather to a more general objective
function representing the state estimation quality.
Depending on the chosen setting, this estimation method
is applicable both for adjustment of a planning simulation to
historical data and to real time traffic monitoring by tracing
within-day traffic fluctuations.
The entire software system is single-threaded and was
written in the Java programming language.
II. M ODELING AND
SIMULATION
The estimation methodology proposed in subsequent section III requires a formal description of the traffic model.
Here, such a representation is given for both the physical
Fig. 1.
Fig. 2.
A. Mobility simulation
The physical model combines microscopic and macroscopic aspects. The representation of traffic flow dynamics is
a fully macroscopic 1st order traffic flow model which runs
in discrete time and space and only moves aggregated flows.
The model permits linearization as required by the algorithm
given in section III-A, but still works on a microscopic level
in order to allow for behavioral heterogeneity in the driver
population, which is difficult to deal with in a macroscopic
way.
At diverges, the macroscopic model splits flows according
to turning fractions that result from observations of individual
behavior in the following way: Massless vehicles passively
float in the macroscopic traffic stream. Only at diverges
they actively choose their next link. The macroscopic model
counts, filters, and normalizes these turning moves, which
yield the required splitting fractions. Formally,
x(0)
= x0
(1)
uij (k)
Vehicles move from left to the right. At the diverge they choose from one of
three routes, each one having a downstream bottleneck. The figure indicates
that the macroscopic density (white=none, green=light, red=jammed) is
smoothly synchronized with the vehicles route choice.
f [k + k]/uij (k) aggregated traffic dynamics can be linearized with respect to any individuals path choice being
expressed as a sequence of turning moves [12], [13].
Overall, the approach is similar to what is termed
smoothed particle hydrodynamics (SPH) in physics [15]
or mesoscopic modeling in transport science [3], [10], [8],
[24], the main difference being that the model described
here was designed with the explicit intention to obtain
first derivatives from the model. In this way, mathematical
feasibility (linearization of the macroscopic model) and expressive power (microsimulation of behavior) are combined.
See Figure 2 for a screenshot of the mobility simulation.
This approach is quite efficient in terms of computational
time: We use an optimized mesh size for every link to
simulate the macroscopic model, which takes up most of
the calculation time. As a result, many links as well as the
vehicles they currently carry are updated on a quite coarse
time scale of up to 64 seconds, while smaller links are
updated every second.
Fig. 3.
kk0 rs
This
plan
comprises
a
three-stage
sequence
residenceworkleisureresidence, which could be typical for an
employed persons weekday. In this example, the residence stage is only
possible at home, while work can be performed either at the office or at
home, assuming that working at home is feasible for this agent. The leisure
activity is possible either at home or at a shopping mall. The agent values
the choice of each activity location within every stage according to (a)
the direct benefit a choice of this location provides and (b) the expected
benefit it can expect from the remainder of its daily plan if it is continued
at this location. For example, when finishing work at 16:00 and comparing
the mall and the home location for the leisure stage, a home-working agent
has to take into account the cost of traveling to the mall and back home
which does not arise if the agent stayed home.
B. Behavioral model
1) A model of daily plans: Every agent has an individual plan for a given day, which is comprised as follows:
The complete day is segmented into n + 1 temporal stages.
Every such stage 0 a n is provided with a set La
of one or more locations (network links) and a discrete start
time step ka with 0 = k0 < k1 < . . . < kn . Formally,
)
stage a is nothing but a fixed temporal interval [ka , ka+1
during which wants to be at one of the locations in La . It
can be interpreted as an activity such as work, leisure or
shopping, while its location set can be understood as the
activity locations where the individual expects facilities for
execution of the according activity, e.g. different malls for
a shopping activity. An example of such an activity plan is
given in Figure 3. Note that the underlying network in which
the example locations are situated is not not drawn, but only
the logical multi-stage structure.
Every plan is anchored at its individuals unique home
location l0 = lhome
, where it starts and ends: L0 = Ln =
(3)
(j, l, ka+1
) + Va+1
(l)} (5)
Va (j) = Ra (j) + min
{Copt
lLa+1
is
by one sweep through all activity stages: ln = lhome
Fig. 4.
A. Optimized assignment
Consider the discrete-time optimal control problem
K1
X
[x(k), u (k), k]
Minimize
J = [x(K)] +
subject to
x(0) = x0 ,
x(k + 1)X
= f [x(k), u(k), k],
u(k) =
u (k),
k=0 M
U = {u (k)}K1
k=0 are feasible.
(7)
The objective functional J is defined in terms of once
differentiable real-valued functions and . M denotes
the set of all travelers. The dynamic system constraints are
identical to (1) and (2), while the verbal route feasibility
constraint is elaborated in section II-B.1.
1) A single agent: Macroscopic traffic dynamics (1) are
linear in good approximation with respect to a single agents
behavior, since individual control variables uij {0, 1}
are small compared to actual turning counts in a congested
network. Thus, it is feasible to consider a linearization of J
with respect to u (k), k = 0 . . . K 1, which we denote
). While the difficulty to account for the dynamic
by J(U
constraints in (7) can be dealt with by well-known methods
from control theory [22] as it has already been elaborated
in a traffic-related context [18], we give a self-contained
explanation in the following.
Denote
J(k) = [x(K)] +
K1
X
[x(c), u (c), c]
c=k M
[x(K)]
x(k)
dx(k)
dJ(k)
M
=
dx(k)
[x(K)]
x(K)
k<K
(8)
k = K.
k<K
k = K.
(9)
(10)
dJ
du (k)
[x(k), u (k), k]
u (k)
(11)
K1
XX
k=0
ij
dJ
u (k) + const.
duij (k) ij
(12)
J
uij (k)
(13)
multiplied with the turn indicators uij (k). When all dij (k)
are positive, then minimization of the linearized problem
J is achieved by finding a balance, within the constraints,
between increasing as few indicators as possible and increasing only those with small dij (k). Since, in our case,
the constraint is given by the necessity of moving a traveler
from his/her origin to his/her destination, the application of
a time variant best path algorithm on a modified network
suggests itself as a solution procedure to this problem, where
the original networks links comprise the new nodes and
every possible turning movement in the original network
is represented by a new link ij with time variant cost
given by dij (k). If it cannot be guaranteed that all dij (k)
are nonnegative, loops of negative cost might occur in the
modified network, which somewhat complicate the best path
calculation [5].
Calculating one such best path for a single agent only
solves a linear problem approximation. The nonlinear prob-
(14)
(15)
(16)
YY
k
(18)
(19)
exp( C (U ))
,
Pr(U ) = P
V exp( C (V))
(20)
(21)
X
exp( C (V))ln Pr(Y) (22)
V
{z
}
|
independent of U
ln
Pr(Y | U ) Pr(U )
,
Pr(Y)
ijk
[x(K)]
= 0
(24)
ij
Fig. 5.
Fig. 6.
Experiment (a)
IV. E XPERIMENTS
A. Setting of the test case
We have set up an extensive test case for the proposed
method. The geographical zone of investigation is the city
of Berlin. Its traffic network is represented by a graph of
approximately 2400 links. The MATSim system has been
used to generate activity plans for a complete microscopic
representation of the Berlin population. The experiments
described here use a 10% sample of this population (approx.
170.000 agents). The network is shown in Figure 5.
We gained first experiences with this test case in a realworld application during the soccer world championship
2006. Since we encountered severe problems with all kind
of data corruption (including errors in the network file,
unrealistic activity plans, unreliable measurements) during
this project, this article considers a setting in which most
uncertainties have been removed in order to study the method
itself rather than a specific scenario. Accordingly, the results
given here are to be understood as a preliminary study of
algorithmic feasibility. Increasing realism with respect to
various sources of disturbances is subject of our ongoing
research.
Fig. 7.
Fig. 8.
Experiment (b)
Experiment (c)
Fig. 9.
Experiment (d)
made available to the estimation algorithm (in-sample results). The out-of-sample results we obtained so far show
greater qualitative variability than the depicted in-sample
results and require further investigations, since ultimately
the method should yield likewise consistent out-of-sample
improvements. One important aspect is the out-of-sample
results greater sensitivity to the chosen behavioral model,
which mainly guides the estimations interpolation between
available measurements.
Even if much more experiments will be necessary to fully
understand all implications of the method, these experiments
assert that the algorithm is computationally capable of generating significant estimation improvements even in real-time
scenarios of realistic size.
V. S UMMARY
AND OUTLOOK
[25]
[26]
[27]
[28]