The Intelligent Driver Model
The IDM (Treiber, Hennecke and Helbing, 2000) is a car-following model. Each driver picks an
acceleration from three things: their own speed, the gap to the car ahead, and how fast they are
closing on it. Every car applies the same rule, every 0.1 s.
acceleration = a · [ 1 − (v / v₀)δ − (s* / s)² ]
s* = s₀ + max(0, v·T + v·Δv / (2√(a·b)))
The first bracketed term is the urge to reach the desired speed v₀, which fades as v approaches it.
The second is the urge to keep a safe gap: s* is the gap the driver wants right now and s is the gap
they have. The wanted gap grows with speed (v·T) and with closing speed Δv, so a driver bearing
down on a slower car brakes, and brakes harder the faster they close.
- Desired speed v₀
- Speed on an empty road.
- Time gap T
- Following distance expressed as time; 1.5 s is a typical real value.
- Standstill gap s₀
- Gap kept when queuing.
- Acceleration a
- Maximum acceleration, and how quickly a driver responds in general.
- Comfortable braking b
- The deceleration drivers aim not to exceed; the model brakes harder when a gap closes too fast.
- Exponent δ
- How abruptly the urge to accelerate dies away near v₀. 4 is the usual value.
With identical drivers, traffic settles at the speed where the two urges balance for the gap
available, which is why density alone sets the cruising speed here. Whether a disturbance then dies
out or grows depends on the density and on a, b and T: when drivers respond sluggishly (small a) and
gaps are short, a line of cars amplifies each other's braking and a stop-and-go wave forms.
In this demo the dynamic part of s* is clamped at zero, cars cannot reverse, and there is no reaction
delay and no variation between drivers.