/N-STARK

N-STARK is an algorithm that can efficiently solve routing problems with time-dependent loads on networks

Primary LanguageJupyter NotebookMIT LicenseMIT

alt text


N-STARK (Non-STAtionary loads Routing on networKs) is a Python implementation of the algorithms used in:

  • [1] Alessandro Lonardi, Enrico Facca, Mario Putti and Caterina De Bacco. Infrastructure adaptation and emergence of loops in network routing with time-dependent loads. Phys. Rev. E 107, 024302 [arXiv].

This is a scheme capable of solving network routing problems with input loads injected in the nodes that change in time. Optimal solutions are computed solving a dynamical system of equations.

If you use this code please cite [1].

What's included

  • code: contains the all the scripts necessary to run N-STARK, and a Jupyter notebook (dashboard.ipynb) with which it is possible to easily interact with them and visualize the results
  • data/input: contains the data needed to build the Bordeaux bus network, where the algorithm can be tested. The network topology has been pre-processed and extracted using [2]
  • misc: files used for the README.md
  • setup.py: setup file to build the Python environment

[2] Rainer Kujala, Christoffer Weckström, Richard K. Darst, Miloš N. Mladenović and Jari Saramäki, Scientific data 5, 180089 (2018).

How to use

To download this repository, copy and paste the following:

git clone https://github.com/aleable/N-STARK

You are ready to test the code! But if you want to know how click HERE.

Contacts

For any issues or questions, feel free to contact us sending an email to alessandro.lonardi@tuebingen.mpg.de.

License

Copyright (c) 2021 Alessandro Lonardi and Caterina De Bacco

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.