Skip to content
Discussion options

You must be logged in to vote

Thanks for doing that analysis.

You can mimic a point queue model by simply setting huge jam_density.

from uxsim import *

W = World(
    name="",
    deltan=5,
    tmax=1200,
    no_cyclic_routing=True,
    print_mode=1, save_mode=0, show_mode=1,
    random_seed=0
)

W.addNode("orig", 0, 0)
W.addNode("mid", 1, 0)
W.addNode("mid2", 2, 0)
W.addNode("dest", 3, 0)
W.addLink("link1", "orig", "mid", length=1000, free_flow_speed=20, number_of_lanes=1)
W.addLink("link2", "mid", "mid2", length=1000, free_flow_speed=20, number_of_lanes=1, capacity_out=0.4, jam_density=1000) #<-This one
W.addLink("link3", "mid2", "dest", length=1000, free_flow_speed=20, number_of_lanes=1)

W.adddemand("orig", "dest…

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
Converted from issue

This discussion was converted from issue #315 on April 30, 2026 06:06.