Git Product home page Git Product logo

opt-urban-nextrout's Introduction

Revealing the similarity between urban transportation networks and optimal transport-based infrastructures

What is Opt-urban Nextrout about? - This project uses a method inspired by optimal transport theory to generate networks that show similarity with the structure of real public transportation networks. By taking in input a set of latitude-longitude coordinates, our algorithm outputs a network structure that represents the optimal topology connecting such points.

Our inputs correspond to real origin-destination station coordinates across multiple cities. We then measure similarities between the existing structures and the outputs of our algorithm by computing different metrics. More details can be found at:

Prerequisites

We use the approach described in Nextrout, which requires the following dependencies:

* A Fortran compiler (any gfortran version>4 but version 5);
* Blas and Lapack libraries;
* Python 3;	
* Meshpy;
* Click;
* Numpy v<1.19;
* f90wrap; 

Installation

Linux/OSX

If all dependencies are installed, you just need to clone this repository:

git clone https://github.com/Danielaleite/opt-urban-nextrout
cd opt-urban-nextrout
python setup.py

This will download and install "Nextrout" and all required python dependencies. If you have any issues with the installation of Nextrout, feel free to reach me out. =)

The execution of setup.py takes a few minutes to complete (dont't panic if you notice it's taking a while). After that, you should find the following folders:

  • code
  • data

Inside code you will find the Nextrout folder, which contains:

  • dmk_utilities
  • nextrout_core

Inside dmk_utilities there are all the files related to the DMK solver. These are needed to execute NextRout. In nextrout_core, you will find the main python scripts and subfolders where the entire procedure takes place. In case of errors during installation, please visit DMK solver, section Troubleshooting.

And how to perform a simulation?

You can simply check our Tutorial at https://github.com/Danielaleite/opt-urban-nextrout/blob/master/code/opt_urban_nextrout_tutorial.ipynb

Contributing

We appreciate any help or suggestions for further improvement. Do not hesitate to contact us in case you want to contribute or have any questions.

opt-urban-nextrout's People

Contributors

danielaleite avatar

Watchers

James Cloos avatar  avatar  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.