toruseo / UXsim

Vehicular traffic flow simulator in road network, written in pure Python
https://toruseo.jp/UXsim/docs/
MIT License
118 stars 56 forks source link

Future Plan: multi-lane link #33

Closed toruseo closed 4 months ago

toruseo commented 5 months ago

The current model assumes that all links are 1 lane. Furthermore, the reaction time of all drivers are the same. These mean that all links have more or less the same capacity. It is not possible to model multi-lane links that have 2 or 3 times the capacity of 1-lane links. This is a theoretical limitation of the underlying model.

I plan to implement multi-lane with FIFO (no overtaking) in the future.

Workarounds for the current model:

EwoutH commented 5 months ago

I would really love to have this included! If you want any help or discuss something please let me know.

toruseo commented 5 months ago

This will take some time as it requires changes to the fundamental simulation logic.

In the meantime, you can apply this workaround:

Create multiple links between same node pair; each link corresponds to each lane between the nodes. This is a reasonable solution. However, the analysis becomes tedious.

erineifert-ida commented 5 months ago

Wouldn't the jam density also be affected on the number of lanes on a link?

Edited to add: I see it now in the code - the jam density is used to calculate the capacity.

toruseo commented 5 months ago

Correct.

In the multilane update, I will implement a consistent model parameter definition.

toruseo commented 5 months ago

Simulation logic is implemented.

Visualization needs to be updated.