Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 1.48 KB

README.md

File metadata and controls

52 lines (41 loc) · 1.48 KB

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.