Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Combine trip and flows

The behavior is definitely supported.
In order to use fromJunction / toJunction you have to set option --junction-taz (or load a taz file).
Are you seeing any warnings?
What is the console output of running  sumo with option -t   (with / without the added flows)?


Am Mo., 24. Feb. 2025 um 14:21 Uhr schrieb Andreas Lenhardt via sumo-user <sumo-user@xxxxxxxxxxx>:
Hello,

I want to combine trips and flows in the same route file.
A simple manhattan grid has random trips generated with randomTrips.py, but I want some directions to have a larger traffic volume.

I tried to add flows in netedit which works and adds the flows like this to my scenario.rou.xml file:

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
    <!-- Vehicles, persons and containers (sorted by depart) -->
    <flow id="f_0" begin="0.00" fromJunction="J0" toJunction="J4" end="3600.00" vehsPerHour="300"/>
    <flow id="f_1" begin="0.00" fromJunction="J4" toJunction="J0" end="3600.00" vehsPerHour="300"/>
    <trip id="1" depart="2.40" from="-E1" to="-E7"/>
    <trip id="2" depart="4.80" from="E13" to="E3"/>
    <trip id="3" depart="7.20" from="E7" to="-E13"/>
    <trip id="4" depart="9.60" from="-E3" to="-E13"/>
    <trip id="5" depart="12.00" from="-E0" to="-E7"/>
    .....

However, this seems to have no effect when I run the simulation. 
Is this behavior unsupported?

Thanks in advance and kind regards
--
Mit besten Grüßen
Andreas Lenhardt
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top