# sumolights
SUMO adaptive traffic signal control - DQN, DDPG, Webster's, Max-pressure, Self-Organizing Traffic Lights
Technical details available at [An Open-Source Framework for Adaptive Traffic Signal Control](https://arxiv.org/abs/1909.00395)
## Setup
Install SUMO traffic microsimulator by [following instructions here](https://sumo.dlr.de/wiki/Installing) (v1.2).
Using Python 3, create a virtual environment and then install dependancies with:
```
pip install -r requirements.txt
```
## Comparing adaptive traffic signal controllers
First train reinforcement learning controllers:
```
./train_dqn.sh
./train_ddpg.sh
```
Then execute simulations to generate performance results for all controllers:
```
./gen_results.sh
```
Visualize results with:
```
python graph_results.py
```
![Screenshot](samples/travel_time.png)
![Screenshot](samples/intersection_moe.png)
## Optimizing hyperparameters
Search for optimal hyperparameters for each controller:
```
./hp_optimization
```
Warning, search for reinforcement learning can require significant compute time!
Visualize hyperparameters with:
```
python graph_results.py -type hp
```
![Screenshot](samples/tsc_hp.png)
![Screenshot](samples/hp.png)
没有合适的资源?快使用搜索试试~ 我知道了~
基于车流量检测的道路交通控制系统的设计python代码.zip
共117个文件
pyc:57个
py:37个
xml:7个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 183 浏览量
2024-05-12
11:21:37
上传
评论
收藏 1.49MB ZIP 举报
温馨提示
1.版本:matlab2014/2019a/2021a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。
资源推荐
资源详情
资源评论
收起资源包目录
基于车流量检测的道路交通控制系统的设计python代码.zip (117个子文件)
.gitignore 190B
sumolights-master.iml 480B
README.md 1KB
intersection_moe.png 792KB
tsc_hp.png 272KB
hp.png 190KB
travel_time.png 126KB
graph_results.py 14KB
learnerproc.py 11KB
simproc.py 10KB
trafficsignalcontroller.py 9KB
sumosim.py 7KB
ddpgcritic.py 7KB
networkdata.py 7KB
argparse.py 6KB
distprocs.py 6KB
graphs.py 6KB
hp_optimization.py 6KB
ddpgactor.py 5KB
dqnagent.py 5KB
nn_factory.py 5KB
ddpgagent.py 4KB
websterstsc.py 4KB
sotltsc.py 4KB
maxpressuretsc.py 4KB
vehiclegen.py 4KB
trafficmetrics.py 4KB
nextphaserltsc.py 3KB
nextdurationrltsc.py 3KB
rlagent.py 3KB
dqn.py 3KB
tsc_factory.py 2KB
graph_training.py 2KB
rl_factory.py 2KB
uniformcycletsc.py 1KB
neuralnet.py 1KB
varstate.py 839B
helper_funcs.py 749B
graph_globals.py 727B
run.py 415B
picklefuncs.py 199B
__init__.py 0B
__init__.py 0B
__init__.py 0B
trafficsignalcontroller.cpython-311.pyc 15KB
sumosim.cpython-311.pyc 12KB
simproc.cpython-311.pyc 11KB
ddpgactor.cpython-311.pyc 9KB
distprocs.cpython-311.pyc 9KB
trafficsignalcontroller.cpython-37.pyc 9KB
learnerproc.cpython-37.pyc 9KB
argparse.cpython-311.pyc 8KB
trafficmetrics.cpython-311.pyc 8KB
dqnagent.cpython-311.pyc 7KB
ddpgagent.cpython-311.pyc 7KB
sumosim.cpython-37.pyc 7KB
vehiclegen.cpython-311.pyc 6KB
websterstsc.cpython-311.pyc 6KB
networkdata.cpython-37.pyc 6KB
maxpressuretsc.cpython-311.pyc 6KB
sotltsc.cpython-311.pyc 5KB
nextdurationrltsc.cpython-311.pyc 5KB
ddpgcritic.cpython-37.pyc 5KB
dqn.cpython-311.pyc 5KB
ddpgactor.cpython-37.pyc 5KB
distprocs.cpython-37.pyc 5KB
trafficmetrics.cpython-37.pyc 5KB
argparse.cpython-37.pyc 5KB
simproc.cpython-37.pyc 5KB
nextphaserltsc.cpython-311.pyc 4KB
rlagent.cpython-311.pyc 4KB
nn_factory.cpython-311.pyc 4KB
dqnagent.cpython-37.pyc 4KB
websterstsc.cpython-37.pyc 4KB
maxpressuretsc.cpython-37.pyc 3KB
vehiclegen.cpython-37.pyc 3KB
ddpgagent.cpython-37.pyc 3KB
dqn.cpython-37.pyc 3KB
sotltsc.cpython-37.pyc 3KB
nextdurationrltsc.cpython-37.pyc 3KB
rlagent.cpython-37.pyc 3KB
tsc_factory.cpython-311.pyc 3KB
helper_funcs.cpython-311.pyc 3KB
uniformcycletsc.cpython-311.pyc 2KB
nextphaserltsc.cpython-37.pyc 2KB
nn_factory.cpython-37.pyc 2KB
neuralnet.cpython-311.pyc 2KB
neuralnet.cpython-37.pyc 2KB
uniformcycletsc.cpython-37.pyc 2KB
tsc_factory.cpython-37.pyc 2KB
varstate.cpython-37.pyc 1KB
helper_funcs.cpython-37.pyc 1KB
rl_factory.cpython-311.pyc 1KB
rl_factory.cpython-37.pyc 732B
picklefuncs.cpython-37.pyc 500B
__init__.cpython-311.pyc 196B
__init__.cpython-311.pyc 182B
__init__.cpython-37.pyc 174B
__init__.cpython-311.pyc 171B
__init__.cpython-37.pyc 160B
共 117 条
- 1
- 2
资源评论
matlab科研助手
- 粉丝: 1w+
- 资源: 2054
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功