This is a course project of CEE 551 (2022Fall). In this project, we use an auction based algorithm to control the switch between phases. The weight is calibrated offline by the algorithm ... . The final result is tested in SUMO.
This project is compatible with Python 3.9+.
You need to install SUMO to run the simulation, you can find instruction here.
Virtual environment is highly recommended for all the project in mtldp. It can help you isolate your project environment from one to another. With virtual environment, you can avoid most dependency issue and reproducible problems.
You can use Anaconda
or Miniconda, or you can use python
standard library [venv](https://docs.python.org/3.8/library/venv.html)
.
Anaconda/Miniconda will be used in the following documentation.
Get the source code via git clone
command.
$ conda create -n cee-551 python=3.9 -y
$ conda activate cee-551
(cee-551) $
(cee-551) $ pip install -r requirements.txt
You can run the test with following command:
(cee-551) $ python test_auction_based.py
Or
(cee-551) $ python test_fixed.py