Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
traffic-scratch
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mehtank
traffic-scratch
Commits
13694bfc
Commit
13694bfc
authored
8 years ago
by
mehtank
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git.uclalemur.com:mehtank/traffic-scratch
parents
f88c9db8
3b199e37
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+20
-0
20 additions, 0 deletions
README.md
with
20 additions
and
0 deletions
README.md
0 → 100644
+
20
−
0
View file @
13694bfc
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
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment