Skip to content

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

Notifications You must be signed in to change notification settings

maslab-ufrgs/system_optimum_solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages