Professional Documents
Culture Documents
Moritz G Utlein (2018) Towards A Hybrid Co-Simulation Framework HLA-Based Coupling of MATSim and SUMO
Moritz G Utlein (2018) Towards A Hybrid Co-Simulation Framework HLA-Based Coupling of MATSim and SUMO
Abstract—Recent topics of interest such as smart cities and confronted with massive problems in terms of feasibility, as
autonomous driving are currently in focus of many research for example recently stated in [15]. This particularly applies
activities. In this context, simulations are used to evaluate for simulations of holistic cross-domain traffic scenarios that
new algorithms, performance of current technologies, or the
impact of upcoming products. In particular, they allow finding consider a broader time frame than few minutes and cover the
errors and optimizing parameter sets prospectively, prior to a space of a whole city.
real-world implementation. Simulation models of many traffic In order to evaluate large-scale scenarios in the field of
problems need to handle large-scale scenarios, connect entities transport simulation, we suggest a new framework for multi-
from different domains, and run in feasible time. In order to level co-simulation. This framework enables modeling of
meet these challenges, an extendable multi-level traffic simulation
approach is proposed in this paper. We briefly introduce existing complex scenarios, allows a flexible performance usage, and
traffic simulation techniques, name upcoming problems, available is dynamically extendable by tools from different problem
solution approaches, and topics regarding the development of our domains. Moreover, it allows scaling of model parts to differ-
framework. As a first step, we coupled two different resolution ent abstraction levels. We initially coupled MATSim [16] and
levels of traffic simulation by using High Level Architecture SUMO [17] using High Level Architecture (HLA). Both tools
(HLA) and evaluated this approach in light of simulation results
and simulation performance. are representing popular open source candidates from two
Index Terms—Multi-level simulation, traffic simulation, simu- different modeling paradigms for traffic simulations, namely
lation coupling, HLA, SUMO, MATSim mesoscopic and microscopic. This contribution is structured as
follows: First, we give an overview of recent works focusing
I. INTRODUCTION on this problem domain and introduce base elements of traffic
Since the early 2000’s many publications have been pub- simulation in Section 2. Thereafter, we present core ideas of
lished in the area of multi-level simulation considering use our framework in Section 3 and describe our first coupling
cases where one single modeling paradigm is not sufficient approach in Section 4. Finally, we present performance mea-
[1]–[14]. Modeling and simulation of a real world system surements in Section 5 and discuss future issues.
requires the selection of an adequate technique that usually
has to fit two requirements at the same time. Firstly, the mod- II. RELATED WORK
eling paradigm needs to offer the possibility to answer posed Co-simulation may be defined as “the coordinated execution
questions. Secondly, it has to provide realizability in terms of of two or more models that differ in their representation as well
the available data basis and computational resource aspects. as in their runtime environment” [18]. We want to define co-
One solution approach to handle these two requirement is simulation as the coordinated execution of two or more models
to cover multiple levels of abstraction. Furthermore, many that differ in their domain as well as in their runtime environ-
real-world scenarios are not homogeneous at all and embrace ment. Otherwise, we would confuse with the other separation
problems that differ greatly in their way to be modeled and types, whose focus may rely on the combination of different
simulated. With that, on the one hand there is a need to modeling paradigms (hybrid simulation) or levels of detail
combine different simulations with different levels of detail. in the same domain (multi-level simulation). Applications for
On the other hand, this implies the additional need for tool co-simulation in the traffic domain include the simulation of
combinations from different domains. This is covered by the vehicular ad hoc networks. There are toolkits available that
field of co-simulation. couple one traffic simulation tool with one network simulation
In the area of transport simulation, there are articles that tool, e.g., Veins [19] coupling SUMO with OMNeT++ [20].
cover one of them; topics of co-simulation or topics of multi- Hybrid simulation [21], [22] is defined as the combined
level and hybrid simulation. The combination of these two application of different modeling paradigms like Discrete
concepts at once would offer the advantage of high perfor- Event Simulation (DES) and System Dynamics (SD). As a
mance, a more flexible level of detail, and decent adaptation result, it enables possibilities to model large complex systems.
to the use case at the same time. However, to the best of our Classical applications can be found in healthcare (e.g., [23]),
knowledge the interaction of applying and combining both but also in the field of traffic simulation (e.g., [8]) when
concepts of coupling simultaneously is not investigated yet. modeling macroscopic traffic with analytical models and cou-
Although being equipped with modern hardware, we are still pling them with DES. Looking at co-simulations, there is even
TABLE I
OVERVIEW OVER T RAFFIC S IMULATION A PPROACHES .
Micro
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [30] [11] [12] [13] [14]
Macro X X - X X - - X X X - X - - -
Meso - - X - X X X - - - - - X X X
Micro X X X X X X X X X X - X X X X
Submicro - - - - - - - - - X X - - - -
Modality v v v v p v v v v v v v p tp v
Submicro Additional
- - (X) - - - - - - - X - - - (X)
Domain
v= vehicles, t = public transport, p = pedestrians
macro
traffic simulation. A participating simulation tool is called
WeatherSim federate. Multiple federates can be connected by using a Run-
meso Time-Infrastructure (RTI). The RTI acts as a middleware,
Visum
coordinates the interactions of the federates, and handles the
time management. Together with a Federation Object Model
MATSim
micro
OMNeT ++
Sim B. General Capabilities
environment space As initially mentioned, we create a framework that allows
ADTF
borderLinkResponsabilites
trafficTransferInteraction
newLink
sourceInstance, sourceAgentId
route
subroute:linkList, transportMode
Fig. 4. SimulationController GUI.
transportMode, scalingFactor
The scenario has been run for 3 hours in simulation time MATSim
6000 SUMO
with a step size of 1000ms, resulting in 3 · 60 · 60 = 10800 Coupled Sum
Coupled MATSim
time steps. This means that we have an average overhead of 5000 Coupled SUMO
Link Volume
4000
for time management. Similar conclusions can be drawn when
comparing the managed and unmanaged SUMO runs or when 3000
Link Volume
10000
coupled simulation run of the 11k Scenario with MATSim and
SUMO having a 1000ms and 1ms time step respectively, the
benefits can clearly be seen. Instead of 105381.27s in the pure 5000
SUMO run (Table IV) at a time step of 1ms, the coupled
simulation of the scenario took 4223.22s (Table VII). This
0
corresponds to almost a factor of 25. Figure 7 and Figure 8 7AM 8AM 9AM 10AM
are showing the simulated traffic volumes of the different runs. Simulation Time