Skip to content

lukedev45/Intelligent-Driver-Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Intelligent Driver Model

A Jupyter-Notebook implementation of the Intelligent Driver Model (IDM) โ€” a classical microscopic car-following traffic model for simulating vehicle longitudinal dynamics in traffic flow. IDM computes vehicle acceleration based on the current speed, desired speed, gap to the vehicle ahead, and relative speed, producing realistic acceleration and braking behaviour in simulated traffic.

This repository includes:

  • A complete notebook modelling IDM from first principles
  • A written PDF report documenting the theory, implementation, and results

๐Ÿš— What is the Intelligent Driver Model?

The Intelligent Driver Model is a time-continuous car-following model that describes how a vehicle reacts dynamically to the vehicle in front of it โ€” balancing desire for speed with safe following distance. IDM has become a foundational model in traffic flow simulation due to its simplicity and ability to capture realistic traffic dynamics.

It uses inputs including:

  • own vehicle speed
  • gap to the leading vehicle
  • relative speed

to compute a smooth acceleration/deceleration profile. IDM can produce realistic behaviours like approaching safe headways and adjusting to traffic slowdowns without unrealistic oscillations.

๐Ÿง  Background & Theory

IDM is mathematically defined by:

$\frac{dv}{dt} = a \left[ 1 - \left(\frac{v}{v_0}\right)^{\delta} - \left(\frac{s^*(v, \Delta v)}{s}\right)^2 \right]$

where:

  • v is current speed
  • v0 is desired speed
  • s is gap to the car ahead
  • ฮ”v is speed difference to the vehicle ahead
  • s*(v, ฮ”v) is the desired dynamic spacing

These inputs and the model structure ensure smooth, collision-free dynamics that respect driver comfort and safe following rules.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published