Code Monkey home page Code Monkey logo

transport-abm's Introduction

transport-abm

Project using an Agent-based Modelling approach to analyse traffic congestion in Singapore. Agent-based modelling is a modelling approach where different agents interact with each other in a simulated environment in an attempt to model real-world behaviour.

In this model, there are two types of agents:

  1. Working Adults
  2. Students

The environment is modelled as a weighted undirected graph where the nodes are planning areas around Singapore and the edges are the travel time between the different nodes.

Each agent has a home_location and a work_location and they travel to and from work/school everyday. By using census data about where citizens live and work, we construct a simulated environment in which we can study how minor traffic disruptions can snowball and affect lots of people. This project also allows us to propose possible solutions and study their effectiveness when used in this simulated model

Demo

base.mp4

Data

The ./data folder contains many .csv files which controls the set up of the environment.

  • locations.csv - .csv file which shows the different nodes and distances between them

Simulation

Using main.py there are several simulations that can be used

Each simulation will create an entry in the logs/ directory which is stdout from all the print statements when performing the simulation. utils.parse_log is then used to read the log files and create a .csv file to display the number of people at each location at every timestep

Visualisation

Visualisations were obtained using Geopandas and publicly available shapefiles to create the heatmap animations

File Structure

├───agents
├───assets
│   └───plan-shp
├───data
├───env
├───logs

transport-abm's People

Contributors

forestt97 avatar joshuaseetoh avatar nic-mak avatar reoneo97 avatar t3naf avatar

Watchers

 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.