Skip to content
Snippets Groups Projects
README.md 549 B
Newer Older
mehtank's avatar
mehtank committed
Requires scipy >= 0.18.0

idmlin.py : creates class IDMLin, which encapsulates a linearization of the IDM car following model

See: https://en.wikipedia.org/wiki/Intelligent_driver_model for IDM parameters T, a, b, s_0, v_0

In traffic, actual equilbrium velocity will be v_e, with ratio r_e = v_e / v_0.

sample usage:

```python
# Initialize driver parameters T, a, b, s_0
idm = IDMLin(T = 1.5, a = 1, b = 3, s0 = 2)

# Set specific driving conditions v_0 and r_e
idm.go(30, 0.5)

# Compute big matrix A for a loop of 22 cars:
a = idm.loop(22)
```