Skip to content

aadinoyiibrahim/VECOTRA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VECOTRA


VECOTRA : VElocity Constrained Optimal TRAnsport

Python implementation of the constrained dynamics described in:

If you use this code please cite [1].

Copyright (c) 2023 Abdullahi Adinoyi Ibrahim and Caterina De Bacco.

How to use this code

Requirements

All the dependencies needed to run the algorithms can be installed using setup.py, in a pre-built conda environment.
In particular, this script needs to be executed as:

python setup.py

You are ready to use our code! Every file you need is included in this repository


Usage example

Example usage is inside the notebook example.ipynb .
The main code implementing the dynamics is script/dyn.py.

In the example.ipynb file, we show the Unconstrained Vs. Contrained Vs. Clip:

  • Unconstrained: is the unconstrained method
  • Contrained : is the Edge Capacity contraint of the method in [1]
  • Clip: a clipped version

An example of topology of a synthetic network with 50 nodes. Showing flows of all O-D pairs is depicted in


As a last step,here is the distribution of variable $\mu$ before and after the edge capacity is implemented for the above topologies:


Contact

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

License

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.

About

Constrained OT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors