Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ring timespace #1016

Open
wants to merge 4,235 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4235 commits
Select commit Hold shift + click to select a range
b14c5f0
change rl_replay to rllib_replay
liljonnystyle Aug 1, 2020
87456cc
Merge pull request #12 from CIRCLES-consortium/i210_auto_upload
nathanlct Aug 3, 2020
25c40b5
Merge pull request #12 from CIRCLES-consortium/i210_auto_upload
nathanlct Aug 3, 2020
bebfa03
same to the highway network
AboudyKreidieh Aug 3, 2020
867cb10
same to the highway network
AboudyKreidieh Aug 3, 2020
6d7ab6f
bug fix
AboudyKreidieh Aug 3, 2020
94ab966
bug fix
AboudyKreidieh Aug 3, 2020
9acc6b4
resolve merge conflict
brentgryffindor Aug 4, 2020
0f5a3d7
resolve merge conflict
brentgryffindor Aug 4, 2020
a692d40
undid changes to xml
AboudyKreidieh Aug 5, 2020
7d0e7df
undid changes to xml
AboudyKreidieh Aug 5, 2020
6b7a52c
fix safety value when no leader (#27)
liljonnystyle Aug 6, 2020
95f1a19
fix safety value when no leader (#27)
liljonnystyle Aug 6, 2020
b935f28
refactor inflows/outflows query and loc_filter (#24)
liljonnystyle Aug 6, 2020
47a82e6
refactor inflows/outflows query and loc_filter (#24)
liljonnystyle Aug 6, 2020
9dae184
Compute Prius & Tacoma metrics together (#25)
liljonnystyle Aug 6, 2020
a45abc1
Compute Prius & Tacoma metrics together (#25)
liljonnystyle Aug 6, 2020
8cda3ab
Fixed AMI
kjang96 Aug 6, 2020
a771cbb
Fixed AMI
kjang96 Aug 6, 2020
bad5285
Merge pull request #28 from CIRCLES-consortium/ami_patch
eugenevinitsky Aug 6, 2020
9b803d5
Merge pull request #28 from CIRCLES-consortium/ami_patch
eugenevinitsky Aug 6, 2020
f78f165
Fix i210 end lane change script to work correctly
eugenevinitsky Aug 7, 2020
c1f006c
Fix i210 end lane change script to work correctly
eugenevinitsky Aug 7, 2020
960c93a
Change script mode
eugenevinitsky Aug 7, 2020
254437f
Change script mode
eugenevinitsky Aug 7, 2020
47de5ec
speedup to vehicle update() method
AboudyKreidieh Aug 7, 2020
9f0a5a1
speedup to vehicle update() method
AboudyKreidieh Aug 7, 2020
7d0d865
cleanup
AboudyKreidieh Aug 7, 2020
da614c3
cleanup
AboudyKreidieh Aug 7, 2020
917ada6
removed code for different PR
AboudyKreidieh Aug 7, 2020
334e754
removed code for different PR
AboudyKreidieh Aug 7, 2020
e362e33
bug fix to multiagent base env
AboudyKreidieh Aug 7, 2020
a2e85ee
bug fix to multiagent base env
AboudyKreidieh Aug 7, 2020
6312a9c
documentation
AboudyKreidieh Aug 7, 2020
d25808c
documentation
AboudyKreidieh Aug 7, 2020
59d39ae
tests
AboudyKreidieh Aug 7, 2020
74f127e
tests
AboudyKreidieh Aug 7, 2020
8da9256
added missing file
AboudyKreidieh Aug 7, 2020
2f6e7f2
added missing file
AboudyKreidieh Aug 7, 2020
5285b25
pep8
AboudyKreidieh Aug 7, 2020
bad79a9
pep8
AboudyKreidieh Aug 7, 2020
09beba4
cleanup
AboudyKreidieh Aug 7, 2020
bd9d0b1
cleanup
AboudyKreidieh Aug 7, 2020
c9b8eaa
removed code for another PR
AboudyKreidieh Aug 7, 2020
4e51932
removed code for another PR
AboudyKreidieh Aug 7, 2020
5224eab
minor
AboudyKreidieh Aug 7, 2020
92d8b84
minor
AboudyKreidieh Aug 7, 2020
d3e39d6
Merge pull request #30 from CIRCLES-consortium/speedup
AboudyKreidieh Aug 8, 2020
c1987ba
Merge pull request #30 from CIRCLES-consortium/speedup
AboudyKreidieh Aug 8, 2020
f36057c
bug fixes
AboudyKreidieh Aug 8, 2020
40c9bf8
bug fixes
AboudyKreidieh Aug 8, 2020
6b83b36
added set_type method to the vehicles class
AboudyKreidieh Aug 8, 2020
4e03531
added set_type method to the vehicles class
AboudyKreidieh Aug 8, 2020
ebad795
pydocstyle
AboudyKreidieh Aug 8, 2020
604d46d
pydocstyle
AboudyKreidieh Aug 8, 2020
1229fc6
bug fixes
AboudyKreidieh Aug 8, 2020
037b444
bug fixes
AboudyKreidieh Aug 8, 2020
42dabc3
Merge branch 'brent-consolidate-visualize' of https://github.com/CIRC…
AboudyKreidieh Aug 8, 2020
6029333
Merge branch 'brent-consolidate-visualize' of https://github.com/CIRC…
AboudyKreidieh Aug 8, 2020
dde15c2
more accurate computation of headways for i210
AboudyKreidieh Aug 8, 2020
7f0681a
more accurate computation of headways for i210
AboudyKreidieh Aug 8, 2020
9bc24cf
pep8
AboudyKreidieh Aug 8, 2020
4653500
pep8
AboudyKreidieh Aug 8, 2020
8d049d8
bug fix
AboudyKreidieh Aug 8, 2020
97d8dae
bug fix
AboudyKreidieh Aug 8, 2020
debe434
Merge branch 'model_v3' of https://github.com/CIRCLES-consortium/flow…
AboudyKreidieh Aug 9, 2020
8268818
Merge branch 'model_v3' of https://github.com/CIRCLES-consortium/flow…
AboudyKreidieh Aug 9, 2020
31188d8
test for get_distance
AboudyKreidieh Aug 9, 2020
1cf60db
test for get_distance
AboudyKreidieh Aug 9, 2020
35781ea
fix some query issues
brentgryffindor Aug 10, 2020
d027367
fix some query issues
brentgryffindor Aug 10, 2020
dbebecf
style fix
brentgryffindor Aug 12, 2020
43c1b53
style fix
brentgryffindor Aug 12, 2020
cffd017
Merge pull request #35 from CIRCLES-consortium/brent-query-fix
brentgryffindor Aug 12, 2020
2eb11af
Merge pull request #35 from CIRCLES-consortium/brent-query-fix
brentgryffindor Aug 12, 2020
1a55588
fix fuel economy histo bins
liljonnystyle Aug 12, 2020
143df1e
fix fuel economy histo bins
liljonnystyle Aug 12, 2020
7034394
Merge pull request #36 from CIRCLES-consortium/jl-fuel-economy-bins
brentgryffindor Aug 12, 2020
82dbc80
Merge pull request #36 from CIRCLES-consortium/jl-fuel-economy-bins
brentgryffindor Aug 12, 2020
29ae05d
update prius model bin range and sort
liljonnystyle Aug 12, 2020
52c516a
update prius model bin range and sort
liljonnystyle Aug 12, 2020
6309f0f
Lots of changes, unpack later
eugenevinitsky Aug 12, 2020
0f9c5b5
Lots of changes, unpack later
eugenevinitsky Aug 12, 2020
d7778ad
Merge branch 'i210_highway_headways' of https://github.com/CIRCLES-co…
eugenevinitsky Aug 12, 2020
2b89875
Merge branch 'i210_highway_headways' of https://github.com/CIRCLES-co…
eugenevinitsky Aug 12, 2020
4ed53dd
Merge pull request #37 from CIRCLES-consortium/jl-fuel-economy-bins
liljonnystyle Aug 12, 2020
5d07dd9
Merge pull request #37 from CIRCLES-consortium/jl-fuel-economy-bins
liljonnystyle Aug 12, 2020
96f2df3
Add the appropriate failsafe to force SUMO to respect max decel
eugenevinitsky Aug 12, 2020
98e2b59
Add the appropriate failsafe to force SUMO to respect max decel
eugenevinitsky Aug 12, 2020
89b4eac
Flake8 and pydoc
eugenevinitsky Aug 12, 2020
a8348c2
Flake8 and pydoc
eugenevinitsky Aug 12, 2020
ef10898
Merge pull request #34 from CIRCLES-consortium/i210_highway_headways
eugenevinitsky Aug 12, 2020
8d5efd9
Merge pull request #34 from CIRCLES-consortium/i210_highway_headways
eugenevinitsky Aug 12, 2020
07d29f9
Merge branch 'model_v3' of https://github.com/CIRCLES-consortium/flow…
eugenevinitsky Aug 12, 2020
d377e56
Merge branch 'model_v3' of https://github.com/CIRCLES-consortium/flow…
eugenevinitsky Aug 12, 2020
7f5991a
Put back LC mode
eugenevinitsky Aug 12, 2020
2ab932e
Put back LC mode
eugenevinitsky Aug 12, 2020
afeb1a3
Clean up downstream edge speed setting
eugenevinitsky Aug 12, 2020
0c98e70
Clean up downstream edge speed setting
eugenevinitsky Aug 12, 2020
6956154
pep8
AboudyKreidieh Aug 13, 2020
7982ed9
pep8
AboudyKreidieh Aug 13, 2020
4379c01
uncommented tests
AboudyKreidieh Aug 13, 2020
4cb6624
uncommented tests
AboudyKreidieh Aug 13, 2020
ab40c72
pydocstyle
AboudyKreidieh Aug 13, 2020
0305a80
pydocstyle
AboudyKreidieh Aug 13, 2020
fa46d22
Merge pull request #4 from CIRCLES-consortium/brent-consolidate-visua…
AboudyKreidieh Aug 13, 2020
2bc2677
Merge pull request #4 from CIRCLES-consortium/brent-consolidate-visua…
AboudyKreidieh Aug 13, 2020
4b6c8d4
Merge branch 'master' of https://github.com/CIRCLES-consortium/flow i…
AboudyKreidieh Aug 13, 2020
9ffcd8e
Merge branch 'master' of https://github.com/CIRCLES-consortium/flow i…
AboudyKreidieh Aug 13, 2020
e4e2160
bug fixes
AboudyKreidieh Aug 13, 2020
fc888b3
bug fixes
AboudyKreidieh Aug 13, 2020
4286100
Add support for min gap
eugenevinitsky Aug 13, 2020
20c85b4
Add support for min gap
eugenevinitsky Aug 13, 2020
3b0a701
Merge branch 'model_v3' of https://github.com/CIRCLES-consortium/flow…
eugenevinitsky Aug 13, 2020
cb82fb8
Merge branch 'model_v3' of https://github.com/CIRCLES-consortium/flow…
eugenevinitsky Aug 13, 2020
d4780ec
add unit tests for speed setting
eugenevinitsky Aug 13, 2020
ea72f89
add unit tests for speed setting
eugenevinitsky Aug 13, 2020
ab4e40d
Add safety to the RL controllers
eugenevinitsky Aug 14, 2020
920451b
Add safety to the RL controllers
eugenevinitsky Aug 14, 2020
2a650a0
Merge branch 'model_v3' into i210-overtake-right
AboudyKreidieh Aug 14, 2020
8481193
Merge branch 'model_v3' into i210-overtake-right
AboudyKreidieh Aug 14, 2020
2143fdb
cleanup to headway computation
AboudyKreidieh Aug 14, 2020
ec0118b
cleanup to headway computation
AboudyKreidieh Aug 14, 2020
36a2fc3
Merge branch 'master' into yashar_lane_change
liljonnystyle Aug 14, 2020
cfb2889
Merge branch 'master' into yashar_lane_change
liljonnystyle Aug 14, 2020
5c4dee4
allow abstract base method to handle not instantiated exception
liljonnystyle Aug 14, 2020
7a4ae51
allow abstract base method to handle not instantiated exception
liljonnystyle Aug 14, 2020
c38e62d
add back in NotImplementedError's for get_custom_accel()
liljonnystyle Aug 14, 2020
f1aee1c
add back in NotImplementedError's for get_custom_accel()
liljonnystyle Aug 14, 2020
10041b9
add get_custom_accel() to RLController and FollowerStopper
liljonnystyle Aug 14, 2020
ab98d36
add get_custom_accel() to RLController and FollowerStopper
liljonnystyle Aug 14, 2020
af90f83
add get_custom_accel() to BandoFTL and PISaturation controllers
liljonnystyle Aug 14, 2020
69806fa
add get_custom_accel() to BandoFTL and PISaturation controllers
liljonnystyle Aug 14, 2020
42a8214
add docstring description for params and returns
liljonnystyle Aug 15, 2020
193ebae
add docstring description for params and returns
liljonnystyle Aug 15, 2020
20fc600
Merge branch 'master' of https://github.com/CIRCLES-consortium/flow
eugenevinitsky Aug 15, 2020
4a41eb8
some speedups
AboudyKreidieh Aug 15, 2020
e9bf1a3
some speedups
AboudyKreidieh Aug 15, 2020
fe96d2a
added overtake_right
AboudyKreidieh Aug 15, 2020
cdfa099
added overtake_right
AboudyKreidieh Aug 15, 2020
ca88006
bug fix
AboudyKreidieh Aug 15, 2020
bff125d
bug fix
AboudyKreidieh Aug 15, 2020
52a90b9
minor
AboudyKreidieh Aug 15, 2020
2b355bf
minor
AboudyKreidieh Aug 15, 2020
409e640
fix i210 replay
nathanlct Aug 16, 2020
34c9702
fix i210 replay
nathanlct Aug 16, 2020
a35e90f
shutdown ray before init
nathanlct Aug 16, 2020
d6d3630
shutdown ray before init
nathanlct Aug 16, 2020
4d22eb5
fix wrong rl action fn
nathanlct Aug 16, 2020
2754567
fix wrong rl action fn
nathanlct Aug 16, 2020
62508ae
fix file name
nathanlct Aug 16, 2020
c96eea5
fix file name
nathanlct Aug 16, 2020
a91a8de
fix pep8
nathanlct Aug 17, 2020
cbe93f6
fix pep8
nathanlct Aug 17, 2020
93c816b
fix pep8
nathanlct Aug 17, 2020
8c75aa4
fix pep8
nathanlct Aug 17, 2020
86cbbc6
compute action with explore=False
nathanlct Aug 17, 2020
785c5d6
compute action with explore=False
nathanlct Aug 17, 2020
6734145
make replay determinism an argument
nathanlct Aug 17, 2020
d8a2954
make replay determinism an argument
nathanlct Aug 17, 2020
b619953
Merge pull request #44 from CIRCLES-consortium/deterministic-replay
eugenevinitsky Aug 17, 2020
ade3ecf
Merge pull request #44 from CIRCLES-consortium/deterministic-replay
eugenevinitsky Aug 17, 2020
790eed0
Merge pull request #43 from CIRCLES-consortium/fix_i210_replay
eugenevinitsky Aug 17, 2020
b9157c6
Merge pull request #43 from CIRCLES-consortium/fix_i210_replay
eugenevinitsky Aug 17, 2020
30763bb
fix mpge conversion for prius
liljonnystyle Aug 17, 2020
4ed5ba8
Merge pull request #39 from CIRCLES-consortium/yashar_lane_change
eugenevinitsky Aug 17, 2020
584f1c0
Merge pull request #39 from CIRCLES-consortium/yashar_lane_change
eugenevinitsky Aug 17, 2020
77bf15a
Merge branch 'master' into model_v3
eugenevinitsky Aug 18, 2020
613effe
Merge branch 'master' into model_v3
eugenevinitsky Aug 18, 2020
2753558
Merge branch 'i210-overtake-right' of https://github.com/CIRCLES-cons…
eugenevinitsky Aug 20, 2020
41d2769
Merge branch 'i210-overtake-right' of https://github.com/CIRCLES-cons…
eugenevinitsky Aug 20, 2020
70d04f7
Merge branch 'master' of github.com:flow-project/flow into model_v3
eugenevinitsky Aug 20, 2020
53f68d5
Merge branch 'master' of github.com:flow-project/flow into model_v3
eugenevinitsky Aug 20, 2020
88bb0e9
Merge branch 'master' of https://github.com/CIRCLES-consortium/flow i…
eugenevinitsky Aug 20, 2020
5a05421
Merge branch 'master' of https://github.com/CIRCLES-consortium/flow i…
eugenevinitsky Aug 20, 2020
61b6b4a
Add rutgers lane changing controller
eugenevinitsky Aug 20, 2020
089a420
Add rutgers lane changing controller
eugenevinitsky Aug 20, 2020
588790b
Merge branch 'model_v3' of https://github.com/CIRCLES-consortium/flow…
eugenevinitsky Aug 20, 2020
23e8e11
Merge branch 'model_v3' of https://github.com/CIRCLES-consortium/flow…
eugenevinitsky Aug 20, 2020
e5306e9
Pydoc and flake8
eugenevinitsky Aug 20, 2020
95528db
Pydoc and flake8
eugenevinitsky Aug 20, 2020
8e164dd
Merge pull request #31 from CIRCLES-consortium/save-load-state
AboudyKreidieh Aug 20, 2020
86ef3e6
Merge pull request #31 from CIRCLES-consortium/save-load-state
AboudyKreidieh Aug 20, 2020
1fb9bae
Minor bug fix
eugenevinitsky Aug 20, 2020
479c072
Minor bug fix
eugenevinitsky Aug 20, 2020
70683c2
add fuel trajectory visualization
nathanlct Aug 21, 2020
c8fc05c
add fuel trajectory visualization
nathanlct Aug 21, 2020
6f170e7
Merge branch 'master' into model_v3
eugenevinitsky Aug 21, 2020
4eb1c94
Merge branch 'master' into model_v3
eugenevinitsky Aug 21, 2020
e115cb6
Merge pull request #48 from CIRCLES-consortium/i120_nrj_viz
nathanlct Aug 21, 2020
7b98fe2
Merge pull request #48 from CIRCLES-consortium/i120_nrj_viz
nathanlct Aug 21, 2020
7790aca
Add unit test testing switch from RL to IDM
eugenevinitsky Aug 27, 2020
9d52b05
Add unit test testing switch from RL to IDM
eugenevinitsky Aug 27, 2020
94800b6
Merge pull request #32 from CIRCLES-consortium/set-vehicle-type
eugenevinitsky Aug 27, 2020
0e827a5
Merge pull request #32 from CIRCLES-consortium/set-vehicle-type
eugenevinitsky Aug 27, 2020
d415ba1
Merge branch 'master' of https://github.com/CIRCLES-consortium/flow i…
eugenevinitsky Aug 27, 2020
43f1e53
Merge branch 'master' of https://github.com/CIRCLES-consortium/flow i…
eugenevinitsky Aug 27, 2020
57833c0
Make default controller in no control edges work controller
eugenevinitsky Aug 27, 2020
97fc1c6
Make default controller in no control edges work controller
eugenevinitsky Aug 27, 2020
d257a87
Pydoc
eugenevinitsky Aug 27, 2020
916c722
Pydoc
eugenevinitsky Aug 27, 2020
9653132
Rename vehicles correctly in multiagent-i210
eugenevinitsky Aug 27, 2020
a5debd1
Rename vehicles correctly in multiagent-i210
eugenevinitsky Aug 27, 2020
3c7f430
Fix bug in follower computation
eugenevinitsky Aug 28, 2020
cfc4bb3
Fix bug in follower computation
eugenevinitsky Aug 28, 2020
250b8ce
Bug fixes
eugenevinitsky Aug 28, 2020
8f5dbf4
Bug fixes
eugenevinitsky Aug 28, 2020
00a536e
Merge pull request #13 from CIRCLES-consortium/model_v3
eugenevinitsky Aug 28, 2020
3ad5f73
Merge pull request #13 from CIRCLES-consortium/model_v3
eugenevinitsky Aug 28, 2020
6ad876a
fix lane handling for i-210 tsd
liljonnystyle Sep 2, 2020
f71b26c
fix metadata format
brentgryffindor Sep 2, 2020
fabcac5
change key to submitter name
brentgryffindor Sep 2, 2020
f03ec00
change pop to get
brentgryffindor Sep 2, 2020
c427644
Merge pull request #51 from CIRCLES-consortium/brent-fix-meta
brentgryffindor Sep 2, 2020
e487355
Set vehicles to obey controller max speed
eugenevinitsky Sep 2, 2020
8b32f5c
Merge branch 'master' into respect_max_speed
eugenevinitsky Sep 2, 2020
e5fcaad
Flake8
eugenevinitsky Sep 2, 2020
f7b7462
Merge pull request #52 from CIRCLES-consortium/respect_max_speed
eugenevinitsky Sep 2, 2020
ae1f920
update expected_segs
liljonnystyle Sep 2, 2020
7fb0be3
Merge pull request #53 from CIRCLES-consortium/jl-tsd-v3
nathanlct Sep 3, 2020
0d44c54
Transfer tests mostly done. Just need to test lane_frequency
kjang96 Sep 7, 2020
75723a0
Merge branch 'master' of https://github.com/CIRCLES-consortium/flow i…
kjang96 Sep 7, 2020
c36c887
Tested transfer tests, plus added lane count helper
kjang96 Sep 9, 2020
5505eb7
Style
kjang96 Sep 9, 2020
606d321
Addressed PR comments added some metrics
kjang96 Sep 11, 2020
6cb2835
style
kjang96 Sep 11, 2020
988c8df
Jc prius energy (#49)
joyncarpio Sep 13, 2020
3191abf
upgrade pandas requirement (#58)
liljonnystyle Sep 14, 2020
354328e
Merge branch 'master' of https://github.com/CIRCLES-consortium/flow
nathanlct Sep 14, 2020
9f15d06
test to make sure rl_ids is the only error
kjang96 Sep 14, 2020
faf3c4f
fixed an info dict typeerror
kjang96 Sep 14, 2020
8b39022
Some bug fixes. Ports IDM with default params, edited IDM sweep to af…
kjang96 Sep 14, 2020
073edd5
add best i210 checkpoint
nathanlct Sep 15, 2020
3838759
simplify pr template
nathanlct Sep 15, 2020
2e54bff
simplify pr template
nathanlct Sep 15, 2020
ac0bdb8
Merge pull request #61 from CIRCLES-consortium/simplify-pr-template
eugenevinitsky Sep 15, 2020
d123de6
Added comments
kjang96 Sep 16, 2020
2b92a46
Added minor thing
kjang96 Sep 16, 2020
fd52f9e
Merge pull request #62 from CIRCLES-consortium/transfer_tests_2
kjang96 Sep 16, 2020
6ae7ff0
Merge pull request #60 from CIRCLES-consortium/add-best-policy
nathanlct Sep 16, 2020
9d949d3
fix flake8 issue
kjang96 Sep 21, 2020
4ee97af
Merge pull request #71 from CIRCLES-consortium/flake8_fix
kjang96 Sep 21, 2020
674898b
Merge pull request #45 from CIRCLES-consortium/jl-fix-mpge
brentgryffindor Sep 21, 2020
817d80a
Update test_energy_models.py (#68)
joyncarpio Sep 22, 2020
d898e37
Min max experiment (#70)
Sulaiman-Almatrudi Sep 22, 2020
7ce99f5
caught some bugs
kjang96 Sep 23, 2020
031ddcf
Merge pull request #72 from CIRCLES-consortium/transfer_fix
kjang96 Sep 23, 2020
2a1072d
Merge branch 'master' of https://github.com/CIRCLES-consortium/flow
eugenevinitsky Sep 24, 2020
e6530cb
(Fix): issue where lines wrap around on ring and figure eight where t…
eugenevinitsky Sep 24, 2020
ea0f50e
Remove figure eight changes for now
eugenevinitsky Oct 7, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 6 additions & 18 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
<!--
Thank you for contributing to Flow!
<!-- Thank you for contributing to Flow! -->

Please make sure you keep the title of your pull request short and informative,
and that you fill in the following template accurately (don't forget to remove
the fields that you do not use and the example texts!). You can also add relevant labels in the right
sidebar.
## Status
<!-- Ready to merge / Do not merge -->

-->
Ready to merge

## Pull request information
## Description
<!-- Describe the changes introduced in this PR; keep it short and informative. -->

- **Status**: ? (ready to merge / in development)
- **Kind of changes**: ? (bug fix / new feature / documentation...)
- **Related PR or issue**: ? (optional)

## Description

<!-- Describe all the changes introduced in this PR; keep it short and informative -->
<!-- If it is a bug fix, describe what the bug was and how you fixed it -->

? (general description)
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,8 @@ flow.ang
*.ang.old
*.sang

# local configuration file for data pipeline
**/data_pipeline_config

temp.pkl

6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ before_install:

# Set up requirements for flow
- conda env create -f environment.yml
- source activate flow
- source activate circles

# [sumo] dependencies and binaries
- pushd $HOME/build/flow-project
- pushd $HOME/build/CIRCLES-consortium
- ./flow/scripts/setup_sumo_ubuntu1604.sh
- popd
- source ~/.bashrc

# [aimsun] install the conda env and update the path to the env
- pushd $HOME/build/flow-project
- pushd $HOME/build/CIRCLES-consortium
- ./flow/scripts/setup_aimsun.sh
- popd
- source ~/.bashrc
Expand Down
Binary file added docs/Prius_EnergyModel.pdf
Binary file not shown.
Binary file added docs/Tacoma_EnergyModel.pdf
Binary file not shown.
5 changes: 4 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: flow
name: circles

dependencies:
- python==3.7.3
Expand All @@ -18,6 +18,7 @@ dependencies:
- cached_property
- joblib==0.10.3
- matplotlib==3.0.0
- pandas==1.1.2
- dill
- lz4
- ray==0.8.0
Expand All @@ -26,3 +27,5 @@ dependencies:
- opencv-python
- boto3==1.10.45
- redis~=2.10.6
- tabulate
- pytz
6 changes: 3 additions & 3 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ trained through RL algorithms provided by *RLlib*.
To execute these examples, run

```shell script
python train.py EXP_CONFIG --rl_trainer "rllib"
python train.py EXP_CONFIG --rl_trainer "rllib" --algorithm <ALGORITHM NAME>
```
where `EXP_CONFIG` is the name of the experiment configuration file, as located
in `exp_configs/rl/singleagent` or `exp_configs/rl/multiagent.`

in `exp_configs/rl/singleagent` or `exp_configs/rl/multiagent.` Here `<ALGORITHM NAME>`
should be the name of your desired algorithm. Currently we support PPO and TD3.

### stable-baselines

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
139 changes: 139 additions & 0 deletions examples/checkpoints/multiagent_i210/params.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
{
"batch_mode": "truncate_episodes",
"callbacks": {
"on_episode_end": "<function setup_exps_rllib.<locals>.on_episode_end at 0x7f3b000ef0d0>",
"on_episode_start": "<function setup_exps_rllib.<locals>.on_episode_start at 0x7f3b004ed620>",
"on_episode_step": "<function setup_exps_rllib.<locals>.on_episode_step at 0x7f3b000ef048>",
"on_train_result": "<function setup_exps_rllib.<locals>.on_train_result at 0x7f3b000ef158>"
},
"clip_actions": true,
"clip_param": 0.3,
"clip_rewards": null,
"collect_metrics_timeout": 180,
"compress_observations": false,
"custom_resources_per_worker": {},
"eager": false,
"eager_tracing": false,
"entropy_coeff": 0.0,
"entropy_coeff_schedule": null,
"env": "I210MultiEnv-v2",
"env_config": {
"flow_params": "{\n \"env\": {\n \"additional_params\": {\n \"accel_penalty\": 0.0025,\n \"accumulated_reward\": true,\n \"accumulated_reward_bonus\": 20,\n \"accumulated_reward_interval_dist\": 50,\n \"headway_curriculum\": false,\n \"headway_curriculum_iters\": 100,\n \"headway_reward_gain\": 2.0,\n \"late_penalty\": false,\n \"late_penalty_add_state\": true,\n \"late_penalty_steps\": 500,\n \"late_penalty_value\": -1.0,\n \"lead_obs\": true,\n \"local_reward\": true,\n \"look_back_length\": 8,\n \"max_accel\": 2.6,\n \"max_decel\": 4.5,\n \"max_downstream_speed\": 5.0,\n \"max_num_agents\": 10,\n \"min_downstream_speed\": 5.0,\n \"min_time_headway\": 2.0,\n \"mpg_reward\": false,\n \"mpj_reward\": false,\n \"no_control_edges\": [\n \"ghost0\",\n \"119257908#3\"\n ],\n \"penalize_accel\": false,\n \"penalize_headway\": false,\n \"penalize_headway_threshold\": 150,\n \"penalize_headway_value\": -1.0,\n \"penalize_stops\": false,\n \"randomize_downstream_speed\": true,\n \"reroute_on_exit\": false,\n \"speed_curriculum\": true,\n \"speed_curriculum_iters\": 20,\n \"speed_reward_gain\": 5.0,\n \"stop_penalty\": 0.01,\n \"target_velocity\": 5.0,\n \"warm_down\": false,\n \"warm_down_steps\": 500\n },\n \"clip_actions\": true,\n \"done_at_exit\": true,\n \"evaluate\": false,\n \"horizon\": 1000,\n \"sims_per_step\": 3,\n \"warmup_steps\": 600\n },\n \"env_name\": \"flow.envs.multiagent.i210.I210MultiEnv\",\n \"exp_tag\": \"I_210_subnetwork\",\n \"initial\": {\n \"additional_params\": {},\n \"bunching\": 0,\n \"edges_distribution\": [\n \"ghost0\",\n \"119257914\",\n \"119257908#0\",\n \"119257908#1-AddedOnRampEdge\",\n \"119257908#1\",\n \"119257908#1-AddedOffRampEdge\",\n \"119257908#2\",\n \"119257908#3\",\n \"27414345\",\n \"27414342#0\",\n \"27414342#1-AddedOnRampEdge\",\n \"173381935\"\n ],\n \"lanes_distribution\": Infinity,\n \"min_gap\": 0,\n \"perturbation\": 0.0,\n \"shuffle\": false,\n \"spacing\": \"uniform\",\n \"x0\": 0\n },\n \"net\": {\n \"additional_params\": {\n \"ghost_edge\": true,\n \"on_ramp\": false\n },\n \"inflows\": {\n \"_InFlows__flows\": [\n {\n \"begin\": 1,\n \"departLane\": 0,\n \"departSpeed\": 25.5,\n \"edge\": \"ghost0\",\n \"end\": 86400,\n \"name\": \"flow_0\",\n \"vehsPerHour\": 1845,\n \"vtype\": \"human\"\n },\n {\n \"begin\": 1,\n \"departLane\": 0,\n \"departSpeed\": 25.5,\n \"edge\": \"ghost0\",\n \"end\": 86400,\n \"name\": \"flow_1\",\n \"vehsPerHour\": 205,\n \"vtype\": \"rl\"\n },\n {\n \"begin\": 1,\n \"departLane\": 1,\n \"departSpeed\": 25.5,\n \"edge\": \"ghost0\",\n \"end\": 86400,\n \"name\": \"flow_2\",\n \"vehsPerHour\": 1845,\n \"vtype\": \"human\"\n },\n {\n \"begin\": 1,\n \"departLane\": 1,\n \"departSpeed\": 25.5,\n \"edge\": \"ghost0\",\n \"end\": 86400,\n \"name\": \"flow_3\",\n \"vehsPerHour\": 205,\n \"vtype\": \"rl\"\n },\n {\n \"begin\": 1,\n \"departLane\": 2,\n \"departSpeed\": 25.5,\n \"edge\": \"ghost0\",\n \"end\": 86400,\n \"name\": \"flow_4\",\n \"vehsPerHour\": 1845,\n \"vtype\": \"human\"\n },\n {\n \"begin\": 1,\n \"departLane\": 2,\n \"departSpeed\": 25.5,\n \"edge\": \"ghost0\",\n \"end\": 86400,\n \"name\": \"flow_5\",\n \"vehsPerHour\": 205,\n \"vtype\": \"rl\"\n },\n {\n \"begin\": 1,\n \"departLane\": 3,\n \"departSpeed\": 25.5,\n \"edge\": \"ghost0\",\n \"end\": 86400,\n \"name\": \"flow_6\",\n \"vehsPerHour\": 1845,\n \"vtype\": \"human\"\n },\n {\n \"begin\": 1,\n \"departLane\": 3,\n \"departSpeed\": 25.5,\n \"edge\": \"ghost0\",\n \"end\": 86400,\n \"name\": \"flow_7\",\n \"vehsPerHour\": 205,\n \"vtype\": \"rl\"\n },\n {\n \"begin\": 1,\n \"departLane\": 4,\n \"departSpeed\": 25.5,\n \"edge\": \"ghost0\",\n \"end\": 86400,\n \"name\": \"flow_8\",\n \"vehsPerHour\": 1845,\n \"vtype\": \"human\"\n },\n {\n \"begin\": 1,\n \"departLane\": 4,\n \"departSpeed\": 25.5,\n \"edge\": \"ghost0\",\n \"end\": 86400,\n \"name\": \"flow_9\",\n \"vehsPerHour\": 205,\n \"vtype\": \"rl\"\n }\n ]\n },\n \"osm_path\": null,\n \"template\": \"/home/ubuntu/flow/examples/exp_configs/templates/sumo/i210_with_ghost_cell_with_downstream.xml\"\n },\n \"network\": \"flow.networks.i210_subnetwork.I210SubNetwork\",\n \"sim\": {\n \"color_by_speed\": false,\n \"disable_collisions\": true,\n \"emission_path\": null,\n \"force_color_update\": false,\n \"lateral_resolution\": null,\n \"load_state\": null,\n \"no_step_log\": true,\n \"num_clients\": 1,\n \"overtake_right\": true,\n \"port\": null,\n \"print_warnings\": true,\n \"pxpm\": 2,\n \"render\": false,\n \"restart_instance\": true,\n \"save_render\": false,\n \"save_state_file\": \"initial_state.xml\",\n \"save_state_time\": null,\n \"seed\": null,\n \"show_radius\": false,\n \"sight_radius\": 25,\n \"sim_step\": 0.4,\n \"teleport_time\": -1,\n \"use_ballistic\": true\n },\n \"simulator\": \"traci\",\n \"veh\": [\n {\n \"acceleration_controller\": [\n \"IDMController\",\n {\n \"a\": 1.3,\n \"b\": 2.0,\n \"display_warnings\": false,\n \"fail_safe\": [\n \"obey_speed_limit\",\n \"safe_velocity\",\n \"feasible_accel\"\n ],\n \"noise\": 0.3\n }\n ],\n \"car_following_params\": {\n \"controller_params\": {\n \"accel\": 2.6,\n \"carFollowModel\": \"IDM\",\n \"decel\": 4.5,\n \"impatience\": 0.5,\n \"maxSpeed\": 30,\n \"minGap\": 0.5,\n \"sigma\": 0.5,\n \"speedDev\": 0.1,\n \"speedFactor\": 1.0,\n \"tau\": 1.0\n },\n \"speed_mode\": 12\n },\n \"energy_model\": \"PDMCombustionEngine\",\n \"initial_speed\": 0,\n \"lane_change_controller\": [\n \"SimLaneChangeController\",\n {}\n ],\n \"lane_change_params\": {\n \"controller_params\": {\n \"laneChangeModel\": \"LC2013\",\n \"lcCooperative\": \"1.0\",\n \"lcKeepRight\": \"1.0\",\n \"lcSpeedGain\": \"1.0\",\n \"lcStrategic\": \"1.0\"\n },\n \"lane_change_mode\": 1621\n },\n \"num_vehicles\": 0,\n \"routing_controller\": null,\n \"veh_id\": \"human\"\n },\n {\n \"acceleration_controller\": [\n \"RLController\",\n {\n \"display_warnings\": false,\n \"fail_safe\": [\n \"obey_speed_limit\",\n \"safe_velocity\",\n \"feasible_accel\"\n ]\n }\n ],\n \"car_following_params\": {\n \"controller_params\": {\n \"accel\": 2.6,\n \"carFollowModel\": \"IDM\",\n \"decel\": 4.5,\n \"impatience\": 0.5,\n \"maxSpeed\": 30,\n \"minGap\": 0.5,\n \"sigma\": 0.5,\n \"speedDev\": 0.1,\n \"speedFactor\": 1.0,\n \"tau\": 1.0\n },\n \"speed_mode\": 12\n },\n \"energy_model\": \"PDMCombustionEngine\",\n \"initial_speed\": 0,\n \"lane_change_controller\": [\n \"SimLaneChangeController\",\n {}\n ],\n \"lane_change_params\": {\n \"controller_params\": {\n \"laneChangeModel\": \"LC2013\",\n \"lcCooperative\": \"1.0\",\n \"lcKeepRight\": \"1.0\",\n \"lcSpeedGain\": \"1.0\",\n \"lcStrategic\": \"1.0\"\n },\n \"lane_change_mode\": 512\n },\n \"num_vehicles\": 0,\n \"routing_controller\": null,\n \"veh_id\": \"rl\"\n }\n ]\n}",
"run": "<class 'ray.rllib.agents.trainer_template.CustomPPOTrainer'>"
},
"evaluation_config": {},
"evaluation_interval": null,
"evaluation_num_episodes": 10,
"gamma": 0.995,
"grad_clip": null,
"horizon": 1000,
"ignore_worker_failures": false,
"input": "sampler",
"input_evaluation": [
"is",
"wis"
],
"kl_coeff": 0.2,
"kl_target": 0.02,
"lambda": 0.97,
"local_tf_session_args": {
"inter_op_parallelism_threads": 8,
"intra_op_parallelism_threads": 8
},
"log_level": "WARN",
"log_sys_usage": true,
"lr": 0.0005,
"lr_schedule": null,
"memory": 0,
"memory_per_worker": 0,
"metrics_smoothing_episodes": 100,
"min_iter_time_s": 0,
"model": {
"conv_activation": "relu",
"conv_filters": null,
"custom_action_dist": null,
"custom_model": null,
"custom_options": {},
"custom_preprocessor": null,
"dim": 84,
"fcnet_activation": "tanh",
"fcnet_hiddens": [
32,
32
],
"framestack": true,
"free_log_std": false,
"grayscale": false,
"lstm_cell_size": 256,
"lstm_use_prev_action_reward": false,
"max_seq_len": 20,
"no_final_linear": false,
"state_shape": null,
"use_lstm": false,
"vf_share_layers": true,
"zero_mean": true
},
"monitor": false,
"multiagent": {
"policies": {
"av": [
null,
"Box(5,)",
"Box(1,)",
{}
]
},
"policies_to_train": null,
"policy_mapping_fn": "<function policy_mapping_fn at 0x7f3b004ed598>"
},
"no_done_at_end": true,
"no_eager_on_workers": false,
"num_cpus_for_driver": 1,
"num_cpus_per_worker": 1,
"num_envs_per_worker": 1,
"num_gpus": 0,
"num_gpus_per_worker": 0,
"num_sgd_iter": 10,
"num_workers": 17,
"object_store_memory": 0,
"object_store_memory_per_worker": 0,
"observation_filter": "NoFilter",
"optimizer": {},
"output": null,
"output_compress_columns": [
"obs",
"new_obs"
],
"output_max_file_size": 67108864,
"postprocess_inputs": false,
"preprocessor_pref": "deepmind",
"remote_env_batch_wait_ms": 0,
"remote_worker_envs": false,
"sample_async": false,
"sample_batch_size": 200,
"seed": null,
"sgd_minibatch_size": 128,
"shuffle_buffer_size": 0,
"shuffle_sequences": true,
"simple_optimizer": false,
"soft_horizon": false,
"synchronize_filters": true,
"tf_session_args": {
"allow_soft_placement": true,
"device_count": {
"CPU": 1
},
"gpu_options": {
"allow_growth": true
},
"inter_op_parallelism_threads": 2,
"intra_op_parallelism_threads": 2,
"log_device_placement": false
},
"timesteps_per_iteration": 0,
"train_batch_size": 17000,
"use_gae": true,
"vf_clip_param": 10.0,
"vf_loss_coeff": 1.0,
"vf_share_layers": false
}
Binary file added examples/checkpoints/multiagent_i210/params.pkl
Binary file not shown.
200 changes: 200 additions & 0 deletions examples/checkpoints/multiagent_i210/result.json

Large diffs are not rendered by default.

Loading