Skip to content

About

Python implementation, using the Cplex Api, to calculate the System Optimum value of a given network.

Topics

Resources

Stars

3 stars

Watchers

4 watching

Forks

Latest commit

 

History

41 Commits

Folders and files

Repository files navigation

System Optimum Solver

Python implementation, using the Cplex Api, to calculate the System Optimum value of a given network.

Network's cost functions must be linear.

Can get networks from

Dependencies

Usage

python so_solver.py [OPTIONS]

Or:

./so_solver.py [OPTIONS]

To get the System Optimal:

so = SOSolver(nodes, edges, od_matrix)
so.solve()
system_optimal = so.get_system_optimum()

Options

  -h, --help            show this help message and exit
  -f FILE               The network file.
  -lp LP                Generate lp file format of the problem

The System Optimum

alt text

REFERENCES:

  1. Stefanello,Fernando and Bazzan, Ana L. C., 2016. Traffic Assignment Problem - Extending Braess Paradox.
  2. http://wiki.inf.ufrgs.br/network_files_specification.

About

Python implementation, using the Cplex Api, to calculate the System Optimum value of a given network.

Topics

Resources

Stars

3 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages