The code for article Efficient Pressure: Improving efficiency for signalized intersections.
python3.6
,tensorflow=2.4
, cityflow
, pandas
, numpy
cityflow
needs a linux environment, and we run the code on Manjaro Linux.
Parameters are well prepared so you can run the code directly.
For Efficient-PressLight
, run:
python run_efficient_presslight.py
For Efficient-CoLight
, run:
python run_efficient_colight.py
For Efficient-MPLight
, run:
python run_efficient_mplight.py
For the baseline methods,
python run_fixedtime.py
python run_maxpressure.py
python run_presslight.py
python run_mplight.py
python run_colight.py
models
: contains all the models used in our article.utils
: contains all the methods to simulate and train the models.The code is modified from MPLight.
The Max-Pressure
is created by ourselves, based on MaxPressure .
PressLight
: Bsed on LIT
model, which comes from Colight.Colight
: Based on Colight.Fixed-Time
: From MPLight.MPLight
: From MPLight.If you use our method and code, please cite our article.
This project is licensed under the GNU General Public License version 3 (GPLv3) - see the LICENSE file for details.