A Python interface for simulating public transport systems using SUMO.
Urban transportation systems are becoming increasingly complex due to the growing number of vehicles and varying traffic conditions. To address these challenges, this project utilized SUMO to model the bus transportation system and road network of Aachen. The developed library can be applied to study any city. By modifying road speed limits and simulating diverse traffic scenarios, the project aimed to assess the impact of individual streets on bus delays and creating a machine learning model to predict these delays.
To use this library, you need to have SUMO installed on your device. Follow the instructions on the SUMO webpage specific to your operating system. Below is a quick installation guide for Linux:
sudo add-apt-repository ppa:sumo/stable
sudo apt-get update
sudo apt-get install sumo sumo-tools sumo-docTo install the package available on PyPI, you can run the following command:
pip install sumo-ptsIf you'd like to experiment with the library or develop new features, feel free to install it directly from this repository by running:
python3 -m pip install .You can now import various modules and begin using the package. Below is an example code for running a graphical simulation:
from sumo_pts.simulation import SimulationHandler, SimConfig
acchen_sim = SimulationHandler("aachen.sumocfg")
acchen_sim.run(gui=True)Contributions are highly encouraged! If you're interested in contributing, please follow the steps outlined below, and make sure that your code complies with the project's coding standards.
- Fork the repository.
- Create a new branch (git checkout -b feature-branch).
- Make your changes.
- Commit your changes (git commit -m 'Add some feature').
- Push to the branch (git push origin feature-branch).
- Open a Pull Request.
This project was developed as part of the Sustainable Computational Engineering course at RWTH-Aachen University. I would like to express my gratitude to the course instructors for their guidance throughout the project. Special thanks to the developers of SUMO and the contributors to the open-source community who made this project possible.