Skip to content
Discussion options

You must be logged in to vote

Hi, thanks for using UXsim!

There are several ways to represent a highway bottleneck.

1. Use the capacity_out argument of Link

You can set the traffic capacity of a link (i.e., the maximum flow rate of traffic that exit the link) using World.addLink(..., capacity_out=0.7*6).
Adjust the capacity_out value to get the behavior you want.
The unit of capacity_out is vehicles per second, and the default value (without a bottleneck) is 0.8 vehicle/s/lane.

2. Use the flow_capacity argument of Node

Alternatively, you can set the traffic capacity of a node (i.e., the maximum flow rate of traffic that pass the node) with World.addNode(..., flow_capacity=0.7*6).
Note that this capacity limits every t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by toruseo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants