Coder Social home page Coder Social logo

hubblecommand / matsim-py-vis Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 512 KB

Python tool to compare MATSim simulation results

License: GNU General Public License v2.0

Python 100.00%
matsim pandas-python geopandas data-visualization data-science

matsim-py-vis's Introduction

matsim-py-vis

Python tool to compare MATSim simulation results and calculate congestion ratios.

Difference between two simulations

Compare the flow of vehicles between two simulations. Useful for comparing the difference in traffic flows between different configurations, systems, etc.

imgs/dispersion_vis.png

An example of how to use it is given in the function doCompareTest.

Congestion Ratios

There are two ways to calculate congestion ratios : hourly and by millisecond (for the time being, only the millisecond one will yeild correct results and print out a chart).

If you want to calculate congestion ratios, you need the network / region / link capacity in the correct unit. When calculating hourly ratios, need vehicles / hour (which is how it is defined in the MATSim network), but when doing it by milliseconds need to divide the capacity by 3600000. Currently it only calculates the congestion ratio for the whole network (which follows the exact same trend as flow / volume), but there are some example on how you could calculate ratios only for residential roads.

Ratio per millisecond for a simulation

imgs/Figure_millis_ratio_0.png

Ratio per millisecond for two different simulations

imgs/Figure_millis_ratio_0-100.png

An example of how to calculate hourly ratios is given in the function doRatioTest.

An example of how to calculate millisecond ratios is given in the function doMillisRatioTest.

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.