Skip to main content

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

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

Back to the top