This repository contains a short computational essay exploring car-following behaviour using the Intelligent Driver Model (IDM).
The main notebook simulates a two-car, no-overtaking scenario and studies how the follower’s velocity evolves over time for different initial gaps.
essay.ipynb— main essay notebook (IDM model + simulations + plots)requirements.txt— minimal Python dependencies
From the repository root:
python -m venv .venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt- Units and modelling assumptions (e.g., speed limit, safe time headway, minimum gap) are documented directly in
essay.ipynb.
- Use a fresh environment and install from
requirements.txt. - If plots look different across machines, check your Matplotlib version.