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.pyFor Efficient-CoLight, run:
python run_efficient_colight.pyFor Efficient-MPLight, run:
python run_efficient_mplight.pyFor the baseline methods,
- Fixed-Time
python run_fixedtime.py- Max-Pressure
python run_maxpressure.py- PressLight
python run_presslight.py- MPLight
python run_mplight.py- Colight
python run_colight.pymodels: 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 onLITmodel, 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.