01 - Introduction to the traffic simulation models - TSM

01 - Introduction to the traffic simulation models - TSM

Often times, we are asked to run 3D simulation of traffic. The only function of a 3D simulation is to look pretty. They take much longer to run and provide no additional information from a 2D simulation.

Schermata 2025-02-23 alle 17.02.34.png

Simulation

As already stated in [[00 - Course introduction - TSM]] I provide again the definition of a simulation:

simulation

A simulation is an imitation of the operation and dynamics of a real world (or proposed) process or system over time.

Why do we simulate

An alternative approach to simulation is direct experimentation: trying variating the system in the real world. Simulation has several advantages against real experimentation:

"Another alternative is to use a mathematical model representing the system. However, it is often infeasible, if not impossible, to come up with an exact mathematical model which can faithfully represent the system under study."

What is needed in a simulation

01 - Introduction to the traffic simulation models - TSM 2025-02-23 17.10.38.excalidraw.png
%%🖋 Edit in Excalidraw%%

There are mainly 3 elements needed to construct a traffic simulation model:

The Network

The network is the easiest thing to obtain. It includes the map (and digital translation) of the system we are interested in. It can be obtained, for example, from [[Open Street Map]].

The Management Schemes

Management schemes are very hard to obtain. Furthermore, they are often also really hard to implement in the simulation softwares themselves.

They include, for example, the workings of traffic lights in the system.

The demand model (OD matrixes)

We could theoretically consider every single door step as a domand generator and attractor, but it would be impractical to run the simulation.

Demand models are very well studied but are still quite hard to generate.

We rely mainly on Origin Destination matrixes.

Very good O/D matrix would be every 15 min.

Zoning

The first step in studying the demand is zoning. We need to divide the system of interest into homogeneous zones. Each zone should have a single land use and all zones should share approximately the same number of trips.

Centroids

Zones are identified by centroids.

centroid

A centroid is the point in a zone where we concentrate all the demand (either starting or arriving) of the zone.

They leave us with a challenge. They are generally distinct entities from the links and nodes of the network. Therefore, we need [[#Connectors]]

Connectors
connectors

Connectors are the elemetns that connect centroids to the network itself.

Deciding the connectors introduces a lot of errors into the simulation. In fact, we only use a handful of connectors per zone (to limit computation complexity). This isnt's such an issue in small zones, but becomes quite relevan for big zones since we mind end up assigning demand in very different and far apart parts of the zone.

Micro- vs Meso- vs Macro- scopic models

There's a difference between:

Macroscopic models

See Macroscopic models

macroscopic models

Macroscopic models are also known as traffic flow models, as they focus on macroscopic variables like traffic flow.

Microscopic models

See Microscopic models

microscopic models

Microscopic models try to predict how one vehicle follows another vehicle. They fall under the scope of car following theory. They are realistic, very detailed models.

If we aggregate the results of a microscopic model, we should be able to obtain the same results of the corresponding macroscopic model.

This is a good validation step to apply every time we run simulations.

Mesoscopic models

mesoscopic

Mesoscopic models are models that fall in between [[#Microscopic models]] and [[#Macroscopic models]]. They have some characteristics of both.

For example, they could model micro demand (veh by veh) but not take lane changes into account, or viceversa, model lane changes but rely on macro demand.

Dynamic Traffic Assignment

Traffic Assignment

traffic assignment

Traffic assigmnent is used to determine how the demand is loaded into the road network providing a way to calculate different traffic variables on network sections.

We need to determine the set of routes that people choose from A to B.

What we need:

Dynamic Traffic Assignment (DTA)

dynamic traffic assignment (dta)

Dynamic Traffic Assignment (DTA) is an extension of the traffic assignment problem that is able to describe the time and spatial evolution of the traffic patterns into the network.

The diagram below shows a general process for DTA:

DTA structure - 01 - Introduction to the traffic simulation models - TSM 2025-02-28 18.08.30.excalidraw.png
%%🖋 Edit in Excalidraw%%

[[#Dynamic Network Loading]]

This is an iterative process. If The result does not match the reality, then we must reiterate changing some variables. Every time we are running a new simulation (the [[#Dynamic Network Loading]]).

Dynamic Network Loading

dynamic network loading

Dynamic Network Loading is the process to efficiently reproduce how network flow propagate along the corresponding paths taking into account the time and a variable traffic demand on each path.

Traffic simulation softwares

Real Projects

Important

Demand \ne OD matrix

Demand is made by many OD matrixes.