Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Issues with Subway simulation and Intermodal Routing

Dear Jakob and SUMO team,

Thank you very much for the clarification!

I tried using the same edge as the to in the <ride> element, matching the last edge of the bus route as you suggested. The bus already had a <personFlow> of 5 persons that were supposed to get off and continue their trip on foot.

  • When the bus stopped, the people waiting at the stop boarded first, but as soon as the existing passengers got off, the newly boarded ones (who were supposed to stay on and exit with the vehicle) disappeared immediately. What could be the reason for this behaviour (attached the rou.xml file for buses and intermodal trips and the bus_stops add file)? Then, I switched them to board a different line (e.g., from bus 23 to bus 24) at the same stop, which is still the last stop of the route and in that case, everything worked without any issues.

 

  • Moreover, I’m facing another issue related to how persons approach the bus stop. Before stopping at the bus stop, the persons walk all the way to the middle of the edge and then appear in the bus stop, completely ignoring the access lane that’s supposed to guide them in directly. It seems like they’re not using the intended connection to the stop. Is there any solution in that problem?

Thanks again for your help and your time!

 

Kind Regards,

Stavros Kontorinis

Centre for Research and Technology Hellas (CERTH)

Hellenic Institute of Transport (HIT)

 

 

From: Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Sent: Monday, April 14, 2025 4:02 PM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Cc: stavroskontorinis@xxxxxxxx
Subject: Re: [sumo-user] Issues with Subway simulation and Intermodal Routing

 

Thank you for reporting.

and the load-state error was due to https://github.com/eclipse-sumo/sumo/issues/16526

you can download a fixed version starting tomorrow at https://sumo.dlr.de/docs/Downloads.php#nightly_snapshots

 

Regarding persons that leave the simulation in a vehicle: If you set the final vehicle edge as the 'to' edge of the ride, no warning will be given and the persons will finish their ride as intended even if the vehicle doesn't stop.  If there is a mismatch between the to-edge and the last vehicle edge, a warning will be given and the person will teleport to the 'to'-edge but no further problems should arise.

 

regards,

Jakob

 

Am Mo., 14. Apr. 2025 um 12:56 Uhr schrieb stavroskontorinis--- via sumo-user <sumo-user@xxxxxxxxxxx>:

Dear SUMO community,

 

I hope you’re doing well.

 

I'm working on a simulation involving a subway line, where subway vehicles are generated every 4 minutes using the <flow> element. Each subway train follows the same route and is scheduled to stop at several defined stops for a fixed duration.

 

To start the simulation with some warm-up traffic present, I use “load-state” to load a previously saved simulation state. However, after doing so, I’ve observed the following issues:

 

  • Some subway trains stop at the bus stops as expected while others do not stop at all, even though the stop definitions are identical.
  • Without the loaded state, in the west to east route the second vehicle (flow1.1) enters the simulation with a depart delay of 440 seconds. Only by applying insertionChecks= “none” it enters normally but then load-state gives the error: attribute 'insertionChecks' is not declared for element 'vehicle'.

 

The inconsistent behavior mentioned in the first point only occurs after loading the state. When running the simulation from the beginning (without loading a state), everything behaves correctly — all subway vehicles stop properly.

 

I am attaching a few example files (load-state, flow of subways, subway stops and net-file) that demonstrate the issue.

 

Moreover, I’ve encountered another issue. I’m also trying to simulate intermodal routing, where persons walk to a bus stop (which is the last stop of the bus route), board the bus there, and then exit the simulation while still on board — without specifying a further destination edge. However, when I define the trip (see screenshot) I receive an error indicating that a “to” attribute is expected in the <ride> element. However, since this is the last stop on the line and the last edge of the network, there is no next edge, and I intend for the person to board the bus there and leave the simulation inside the vehicle (as it exits).

Is there a way in SUMO to simulate this kind of behavior, where a person boards a bus at its final stop and exits the network on board without specifying a “to” edge?

 

Thank you in advance for your time and support.

 

 

Kind Regards,

 

Stavros Kontorinis

Centre for Research and Technology Hellas (CERTH)

Hellenic Institute of Transport (HIT)

 

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2025-04-09 10:23:28 by Eclipse SUMO netedit Version 1.22.0
-->

<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd";>
    <!-- StoppingPlaces -->
    <busStop id="1339" name="ΛΙΜΑΝΙ" lane="Salaminos_0_1_s_1" startPos="106.81" endPos="116.81">
        <access lane="Salaminos_0_1_s_0" pos="110.0"/>
    </busStop>
    <busStop id="1352" name="ΠΛΑΤΕΙΑ ΕΛΕΥΘΕΡΙΑΣ" lane="Venizelou_0_1_n_1" startPos="21.26" endPos="31.26">
        <access lane="Venizelou_0_1_n_0" pos="6.71"/>
    </busStop>
    <busStop id="1353" name="Τ.Σ. ΒΕΝΙΖΕΛΟΥ ΓΡ24" lane="Venizelou_0_1_n_1" startPos="50.56" endPos="60.56">
        <access lane="Venizelou_0_1_n_0" pos="43.96"/>
    </busStop>
</additional>
<routes>

	<vType id="BUS_03KR" length="12.0" minGap="3.0" maxSpeed="70.0" guiShape="bus" vClass="bus" color="white" accel="2.6" decel="4.5" sigma="0.0"/>
    <vType id="BUS_23R" length="12.0" minGap="3.0" maxSpeed="70.0" guiShape="bus" vClass="bus" color="white" accel="2.6" decel="4.5" sigma="0.0"/>
    <vType id="BUS_24R" length="12.0" minGap="3.0" maxSpeed="70.0" guiShape="bus" vClass="bus" color="white" accel="2.6" decel="4.5" sigma="0.0"/>
    <vType id="BUS_39R" length="12.0" minGap="3.0" maxSpeed="70.0" guiShape="bus" vClass="bus" color="white" accel="2.6" decel="4.5" sigma="0.0"/>
	
    <route id="39_return" edges="Salaminos_0_1_s Kountouriwtou_0_1_se Kountouriwtou_0_2_se LeoforosNikhs_0_1_se Venizelou_0_1_n"/>
	<route id="24_return" edges="Dragoumi_0_1_s LeoforosNikhs_0_1_se Venizelou_0_1_n"/>
	<route id="23_return" edges="Salaminos_0_1_s Kountouriwtou_0_1_se Kountouriwtou_0_2_se LeoforosNikhs_0_1_se Venizelou_0_1_n"/>
	<route id="03K_return" edges="Salaminos_0_1_s Kountouriwtou_0_1_se Kountouriwtou_0_2_se LeoforosNikhs_0_1_se Venizelou_0_1_n"/>

    <vehicle type="BUS_03KR" id="3K_r_1" route="03K_return" depart="28980" line="BUS_03KR" personNumber="25" color="white">        
        <stop busStop="1339" duration="25.0"/>                     
    </vehicle>

    <vehicle type="BUS_23R" id="23_r_1" route="23_return" depart="28980" line="BUS_23R" personNumber="20" color="white">        
        <stop busStop="1339" duration="25.0"/> 
        <stop busStop="1352" duration="25.0"/>                     
    </vehicle>
    
    <vehicle type="BUS_39R" id="39_r_1" route="39_return" depart="29040" personNumber="20" color="white">        
        <stop busStop="1339" duration="25.0"/>                     
    </vehicle>

    <vehicle type="BUS_24R" id="24_r_1" route="24_return" depart="29100" line="BUS_24R" personNumber="20" color="white">        
        <stop busStop="1352" duration="25.0"/>                     
    </vehicle>
    <personFlow id="pf1" begin="29300.00" number="5" period="0" color="blue">
        <walk from="Karatasou_0_4_se" to="Salaminos_0_1_s"/>
        <stop busStop="1339" duration="100"/>
        <ride from="Salaminos_0_1_s" to="Venizelou_0_1_n" lines="BUS_23R"/>
        <walk from="Venizelou_0_1_n" to="LeoforosNikhs_0_2_se"/>
    </personFlow>
    <vehicle type="BUS_03KR" id="3K_r_2" route="03K_return" depart="29400" line="BUS_03KR" personNumber="25" color="white">        
        <stop busStop="1339" duration="25.0"/>             
    </vehicle>

    <vehicle type="BUS_23R" id="23_r_2" route="23_return" depart="29520" line="BUS_23R" personNumber="20" color="white">        
        <stop busStop="1339" duration="25.0"/>
        <stop busStop="1352" duration="25.0"/>             
    </vehicle>

    <vehicle type="BUS_39R" id="39_r_2" route="39_return" depart="29640" personNumber="20" color="white">        
        <stop busStop="1339" duration="25.0"/>             
    </vehicle>

    <vehicle type="BUS_03KR" id="3K_r_3" route="03K_return" depart="29820" line="BUS_03KR" personNumber="25" color="white">        
        <stop busStop="1339" duration="25.0"/>                        
    </vehicle>

    <personFlow id="pf2" begin="29830.00" number="5" period="0" color="blue">
        <walk from="bike5_s" to="Venizelou_0_1_n"/>
        <stop busStop="1352" duration="200"/>
        <ride from="Venizelou_0_1_n" to="Venizelou_0_1_n" lines="BUS_23R"/>
    </personFlow>

    <vehicle type="BUS_23R" id="23_r_3" route="23_return" depart="30060" line="BUS_23R" personNumber="20" color="white">        
        <stop busStop="1339" duration="25.0"/>
        <stop busStop="1352" duration="25.0"/>                        
    </vehicle>

    <vehicle type="BUS_03KR" id="3K_r_4" route="03K_return" depart="30300" line="BUS_03KR" personNumber="25" color="white">        
        <stop busStop="1339" duration="25.0"/>                     
    </vehicle>

    <vehicle type="BUS_39R" id="39_r_3" route="39_return" depart="30300" personNumber="20" color="white">        
        <stop busStop="1339" duration="25.0"/>                        
    </vehicle>

    <vehicle type="BUS_24R" id="24_r_2" route="24_return" depart="30300" line="BUS_24R" personNumber="20" color="white">        
        <stop busStop="1352" duration="25.0"/>             
    </vehicle>
    <personFlow id="pf3" begin="30310.00" number="5" period="0" color="blue">
        <walk from="bike11_e" to="Salaminos_0_1_s"/>
        <stop busStop="1339" duration="100"/>
        <ride from="Salaminos_0_1_s" to="Venizelou_0_1_n" lines="BUS_23R"/>
        <walk from="Venizelou_0_1_n" to="Komninon_0_1_s"/>
    </personFlow>
    <personFlow id="pf4" begin="30320.00" number="3" period="0" color="blue">
        <walk from="Salaminos_0_2_s" to="Salaminos_0_1_s"/>
        <stop busStop="1339" duration="100"/>
        <ride from="Salaminos_0_1_s" to="Venizelou_0_1_n" lines="BUS_23R"/>
        <walk edges="Venizelou_0_1_n" arrivalPos="69.00"/>
    </personFlow>
    <vehicle type="BUS_23R" id="23_r_4" route="23_return" depart="30600" line="BUS_23R" personNumber="20" color="white">        
        <stop busStop="1339" duration="25.0"/>
        <stop busStop="1352" duration="25.0"/>                     
    </vehicle>

    <vehicle type="BUS_03KR" id="3K_r_5" route="03K_return" depart="30780" line="BUS_03KR" personNumber="25" color="white">        
        <stop busStop="1339" duration="25.0"/>             
    </vehicle>

    <vehicle type="BUS_39R" id="39_r_4" route="39_return" depart="30960" personNumber="20" color="white">        
        <stop busStop="1339" duration="25.0"/>                     
    </vehicle>




    <vehicle type="BUS_23R" id="23_r_5" route="23_return" depart="31200" line="BUS_23R" personNumber="20" color="white">        
        <stop busStop="1339" duration="25.0"/>
        <stop busStop="1352" duration="25.0"/>             
    </vehicle>
    <vehicle type="BUS_03KR" id="3K_r_6" route="03K_return" depart="31260" line="BUS_03KR" personNumber="25" color="white">        
        <stop busStop="1339" duration="25.0"/>                        
    </vehicle>
    <vehicle type="BUS_24R" id="24_r_3" route="24_return" depart="31500" line="BUS_24R" personNumber="20" color="white">        
        <stop busStop="1352" duration="25.0"/>                        
    </vehicle>
    <vehicle type="BUS_39R" id="39_r_5" route="39_return" depart="31620" personNumber="20" color="white">        
        <stop busStop="1339" duration="25.0"/>             
    </vehicle>   
    <vehicle type="BUS_03KR" id="3K_r_7" route="03K_return" depart="31800" line="BUS_03KR" personNumber="25" color="white">        
        <stop busStop="1339" duration="25.0"/>             
    </vehicle>
    <vehicle type="BUS_23R" id="23_r_6" route="23_return" depart="31800" line="BUS_23R" personNumber="20" color="white">        
        <stop busStop="1339" duration="25.0"/>
        <stop busStop="1352" duration="25.0"/>                        
    </vehicle>
    <vehicle type="BUS_03KR" id="3K_r_8" route="03K_return" depart="32220" line="BUS_03KR" personNumber="25" color="white">        
        <stop busStop="1339" duration="25.0"/>                        
    </vehicle>

    <vehicle type="BUS_39R" id="39_r_6" route="39_return" depart="32340" personNumber="20" color="white">        
        <stop busStop="1339" duration="25.0"/>                        
    </vehicle>

    <vehicle type="BUS_23R" id="23_r_7" route="23_return" depart="32400" line="BUS_23R" personNumber="20" color="white">        
        <stop busStop="1339" duration="25.0"/>
        <stop busStop="1352" duration="25.0"/>                        
    </vehicle>








</routes>



Back to the top