Coder Social home page Coder Social logo

traffic-optimisation's Introduction

Traffic Optimisation

Traffic Signals optimisation for better road traffic handling using Deep Reinforcement Learning. The software SUMO ( Simulation of Urban MObility ) has been used to simulate traffic. To control the traffic signals system, the Traci, or Traffic Control Interface has been used which allows to retrieve values of simulated objects and to manipulate their behaviour "on-line".

Setup Instructions

Install SUMO 0.28.0 using the command -

sudo apt-get install sumo sumo-tools sumo-doc

Create a virtual environment(install if not installed) using the command -

virtualenv venv

Activate the virtual environment -

source venv/bin/activate

Install requirements using pip install -r setup/requirements.txt

Set the SUMO_HOME environment variable equal to the SUMO directory installed in your system ( /usr/share/sumo ).

Clone this repository using

git clone https://github.com/Wert1996/Traffic-Optimisation.git

To see the simulation in action, run

python singleSimulation.py

To see the training of the Deep Q Learner in action, run

python control.py

The training can be run in gui mode by changing sumo to sumo-gui in the sumo binary path in control.py. The training results are stored in ResultsOfSimulations.txt

traffic-optimisation's People

Contributors

wert1996 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.