Skip to content
Snippets Groups Projects
Commit 13694bfc authored by mehtank's avatar mehtank
Browse files

Merge branch 'master' of git.uclalemur.com:mehtank/traffic-scratch

parents f88c9db8 3b199e37
Branches
No related merge requests found
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)
```
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment