If you start the applet with the given values by pressing "Start" you will see some cars moving along a three lane road. The first cars on each lane will accelerate until they leave the screen. They will appear on the left side on the screen again due to periodic boundary conditions. During the simulation, the traffic density will vary: very dense traffic will alternate with very low traffic. For certain initial conditions, the simulation will develop a traffic jam. By pressing "Pause"the applet will freeze and show the current frame, so that a snapshot of the simulation can be investigated. The button "Reset" will initialize the cars again and after pressing the Start button, the simulation will run again. While the applet is running you can vary all sliders and this will have a direct effect on the simulation. However varying the sliders for the number of cars or trucks will reset the simulation so that new cars and trucks can be inserted. The parameters "Number of Cars" and "Number of Trucks" will make the chosen amount of cars and trucks appear on every lane. The number of vehicles on one lane is limited to 50.

It is possible to make the applet crash by choosing parameters such that the distance between the cars becomes very small. In this case the cars on the corresponding lane will disappear. Then it is recommended to reset the applet. A large change in the parameters while the applet is paused can also cause the simulation to crash, as the cars are not able to react to sudden changes. It is therefore recommended to change parameters adiabatically.

- The standard initial conditions result in a traffic jam after some time. Yet, there are no trucks on the road. If the acceleration $a$ is increased, the traffic jam can be dissolved, as the standing cars are able to drive away faster than breaking cars are accumulating behind the traffic jam. This leads to a state, where there is an area of increased car density. If the acceleration is decreased, this area turns into a traffic jam again. Once the cars are homogeniously distributed, it is nearly impossible to create a traffic jam as all cars are influenced equally by the parameters.
- Using just ten cars will lead to stable traffic independent of the values of the parameters.
- If trucks are added to the simulation and the other parameters stay default, the trucks will stop the cars from reaching high speeds and the cars will accumulate behind the trucks. This will lead to longer traffic jams. If there are few cars and trucks, and the acceleration of the cars is increased, the cars will follow the trucks closely without creating traffic jams.

Which velocity should vehicles have driving through a road construction site to reach the best possible flow? Would the flow be even better if the cars would be automotive? How does an automotive vehicle have to handle which kinds of influences?

These kinds of questions lead to the development of more and more complex traffic models since the 1950s. On one hand they shall simulate real traffic and on the other hand they shall help us to develop vehicles which can participate in traffic without a human driver. Car-following models represent a special class of such models. Acceleration or braking of a vehicle depends only on its own velocity and on the velocity and the position of the vehicle directly in front. One of those models is the Intelligent Driver Model (IDM), which is so the basis for this applet.

- $v_{0}$ is the velocity the vehicle would drive on a free road.
- $s_{0}$ is the minimal distance to the vehicle in front; also in complete standstill.
- $T$ is the desired safety time headway to the vehicle in front.
- $a$ is the acceleration.
- $b$ is the comfortable braking deceleration.
- $\delta$ is the acceleration exponent.

Like already said one can characterise different vehicle and driver types with these parameters. A truck(red) is described by smaller values of $v_{0}$, $a$ and $b$ as a car would have. A careful driver is described by high $T$ whereas an aggressive driver could be characterised by high values of $v_{0}$, $a$ and $b$. $v$ is the velocity of the vehicle and $x$ is its position. $s$ is the actual distance to the vehicle in front which is calculated from the positions of the cars and their length.

In this applet the parameter $s_{0}$, $v_{0}$, $a$, $b$, $\delta$ and $T$ of the cars are variable. The parameters for the trucks are constant and have the following values:

- $a$ = 2,5 m/s²
- $b$ = 2 m/s²
- $s_{0}$ = 50 m
- $v_{0}$ = 80 km/h
- $\delta$ = 4
- $l_{LKW}$ = 5 m

For the simulation the coupled differential equation is solved for every time step for every vehicle by the Runge-Kutta method. The DGL is coupled because it has in principle the following form: $$ \begin{array}{rcl} \dfrac{dx}{dt} &=& v \\ \dfrac{dv}{dt} &=& f(v) \end{array} $$

This system returns a new position and a new velocity after each time interval.

Here you find the Java Code of the Applet as zip-folder for downloading.

- Anna Hellfrisch, bachelor student
- Daniel Born, master student
- Christoph Beberweil, master student

- Treiber, Martin; Helbing, Dirk: realistische Mikrosimulation von Straßenverkehr mit einem einfachen Modell, Contribution to the 16. Symposium "Simulationstechnik ASIM 2002" Rostock, 10.09 -13.09.2002
- Treiber, M.; Hennecke, A. und Helbing, D.: Congested traffic states in empirical observations and microscopic simulations, Physical Review E 62 (2000), pp. 1805–1824.
- Website Longitudinal Traffic model: The IDM
- Wikipedia Intelligent driver model

Legal note: We do not take any responsibility for

the content of the webPages linked here-in.