Skip to content

zuzhaoye/traffic-assignment-all-or-nothing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

All or nothing algorithm for traffic assignment

It is an all-or-nothing algorithm for traffic assignment.

Given a network with limited links and demand between each node pair, calculate the traffic flow on each link based on all-or-nothing assignement algorithm, e.g. assign all the traffic demand from node 1 to 3 to its shortest path.

there should be a network image here, if you can not find load an image, check your browser capatibility

Input files:

  • network.csv (arrange it in such an order from top to bottom: 1 - 2, 1 - 3, ..., 1 - N, 2 - 3, 2 - 4 ..., (N-1) - N)
  • OD.csv (traffic demand on each origin - destination pair)

The Dijsktra algorithm on finding the shortest path is credited to dingran.

About

It is an all-or-nothing algorithm for traffic assignment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published