DTSO-Mtech_2025/sumo_configs/traffic_demand.rou.xml

71 lines
4.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<routes>
<!-- Vehicle Types -->
<vType id="passenger" accel="2.6" decel="4.5" sigma="0.5" length="4.5" minGap="2.5" maxSpeed="55.56" color="yellow"/>
<vType id="bus" accel="1.2" decel="4.0" sigma="0.5" length="12.0" minGap="3.0" maxSpeed="27.78" color="blue"/>
<vType id="truck" accel="1.0" decel="4.0" sigma="0.5" length="8.0" minGap="3.0" maxSpeed="27.78" color="red"/>
<!-- Routes Definition -->
<!-- North to South -->
<route id="N_to_S" edges="N_to_intersection intersection_to_S"/>
<!-- North to East -->
<route id="N_to_E" edges="N_to_intersection intersection_to_E"/>
<!-- North to West -->
<route id="N_to_W" edges="N_to_intersection intersection_to_W"/>
<!-- East to West -->
<route id="E_to_W" edges="E_to_intersection intersection_to_W"/>
<!-- East to North -->
<route id="E_to_N" edges="E_to_intersection intersection_to_N"/>
<!-- East to South -->
<route id="E_to_S" edges="E_to_intersection intersection_to_S"/>
<!-- South to North -->
<route id="S_to_N" edges="S_to_intersection intersection_to_N"/>
<!-- South to East -->
<route id="S_to_E" edges="S_to_intersection intersection_to_E"/>
<!-- South to West -->
<route id="S_to_W" edges="S_to_intersection intersection_to_W"/>
<!-- West to East -->
<route id="W_to_E" edges="W_to_intersection intersection_to_E"/>
<!-- West to North -->
<route id="W_to_N" edges="W_to_intersection intersection_to_N"/>
<!-- West to South -->
<route id="W_to_S" edges="W_to_intersection intersection_to_S"/>
<!-- Traffic Flows with Time-Varying Demand -->
<!-- Morning Rush Hour (0-1800s) - Higher N-S and S-N flow -->
<flow id="flow_N_to_S_morning" route="N_to_S" begin="0" end="1800" vehsPerHour="800" type="passenger"/>
<flow id="flow_S_to_N_morning" route="S_to_N" begin="0" end="1800" vehsPerHour="600" type="passenger"/>
<flow id="flow_E_to_W_morning" route="E_to_W" begin="0" end="1800" vehsPerHour="400" type="passenger"/>
<flow id="flow_W_to_E_morning" route="W_to_E" begin="0" end="1800" vehsPerHour="300" type="passenger"/>
<!-- Midday (1800-2400s) - Balanced flow -->
<flow id="flow_N_to_S_midday" route="N_to_S" begin="1800" end="2400" vehsPerHour="400" type="passenger"/>
<flow id="flow_S_to_N_midday" route="S_to_N" begin="1800" end="2400" vehsPerHour="400" type="passenger"/>
<flow id="flow_E_to_W_midday" route="E_to_W" begin="1800" end="2400" vehsPerHour="450" type="passenger"/>
<flow id="flow_W_to_E_midday" route="W_to_E" begin="1800" end="2400" vehsPerHour="450" type="passenger"/>
<!-- Evening Rush Hour (2400-3600s) - Higher E-W and W-E flow -->
<flow id="flow_N_to_S_evening" route="N_to_S" begin="2400" end="3600" vehsPerHour="300" type="passenger"/>
<flow id="flow_S_to_N_evening" route="S_to_N" begin="2400" end="3600" vehsPerHour="400" type="passenger"/>
<flow id="flow_E_to_W_evening" route="E_to_W" begin="2400" end="3600" vehsPerHour="700" type="passenger"/>
<flow id="flow_W_to_E_evening" route="W_to_E" begin="2400" end="3600" vehsPerHour="750" type="passenger"/>
<!-- Left Turn Flows (Lower Volume) -->
<flow id="flow_N_to_E" route="N_to_E" begin="0" end="3600" vehsPerHour="150" type="passenger"/>
<flow id="flow_N_to_W" route="N_to_W" begin="0" end="3600" vehsPerHour="100" type="passenger"/>
<flow id="flow_E_to_N" route="E_to_N" begin="0" end="3600" vehsPerHour="120" type="passenger"/>
<flow id="flow_E_to_S" route="E_to_S" begin="0" end="3600" vehsPerHour="130" type="passenger"/>
<flow id="flow_S_to_E" route="S_to_E" begin="0" end="3600" vehsPerHour="110" type="passenger"/>
<flow id="flow_S_to_W" route="S_to_W" begin="0" end="3600" vehsPerHour="90" type="passenger"/>
<flow id="flow_W_to_N" route="W_to_N" begin="0" end="3600" vehsPerHour="100" type="passenger"/>
<flow id="flow_W_to_S" route="W_to_S" begin="0" end="3600" vehsPerHour="140" type="passenger"/>
<!-- Heavy Vehicles (Buses and Trucks) -->
<flow id="bus_N_to_S" route="N_to_S" begin="0" end="3600" vehsPerHour="20" type="bus"/>
<flow id="bus_E_to_W" route="E_to_W" begin="0" end="3600" vehsPerHour="15" type="bus"/>
<flow id="truck_mixed" route="N_to_S" begin="0" end="3600" vehsPerHour="50" type="truck"/>
</routes>