Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Creating route distributions with inflows?

Dear all,

How do I create route distributions with flows? My XML is attached, and here is also a screenshot of what I'm attempting to do (note that this one just has probability 1 for testing purposes): 

image.png

Best,
Kathy Jang
University of California, Berkeley | MS/PhD
<?xml version='1.0' encoding='UTF-8'?>
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd";>
  <route id="route119257914_0" edges="119257914 119257908#0 119257908#1-AddedOnRampEdge 119257908#1 119257908#1-AddedOffRampEdge 119257908#2 119257908#3"/>
  <route id="route119257908#0_0" edges="119257908#0 119257908#1-AddedOnRampEdge 119257908#1 119257908#1-AddedOffRampEdge 119257908#2 119257908#3"/>
  <route id="route119257908#1-AddedOnRampEdge_0" edges="119257908#1-AddedOnRampEdge 119257908#1 119257908#1-AddedOffRampEdge 119257908#2 119257908#3"/>
  <route id="route119257908#1_0" edges="119257908#1 119257908#1-AddedOffRampEdge 119257908#2 119257908#3"/>
  <route id="route119257908#1-AddedOffRampEdge_0" edges="119257908#1-AddedOffRampEdge 119257908#2 119257908#3"/>
  <route id="route119257908#2_0" edges="119257908#2 119257908#3"/>
  <route id="route119257908#3_0" edges="119257908#3"/>
  <route id="routeghost0_0" edges="ghost0 119257914 119257908#0 119257908#1-AddedOnRampEdge 119257908#1 119257908#1-AddedOffRampEdge 119257908#2 119257908#3"/>
  <flow id="human_0" type="human" departLane="best" departSpeed="25.5" begin="1" end="86400" vehsPerHour="9737">
    <routes>
      <route_distribution>
        <route edges="ghost0 119257914 119257908#0 119257908#1-AddedOnRampEdge 119257908#1 119257908#1-AddedOffRampEdge 119257908#2 119257908#3" probability="1"/>
      </route_distribution>
    </routes>
  </flow>
  <flow id="human_00" type="human" route="routeghost0_0" departLane="best" departSpeed="25.5" begin="1" end="86400" vehsPerHour="9737.0"/>
  <flow id="rl_1" type="rl" departLane="best" departSpeed="25.5" begin="1" end="86400" vehsPerHour="512">
    <routes>
      <route_distribution>
        <route edges="ghost0 119257914 119257908#0 119257908#1-AddedOnRampEdge 119257908#1 119257908#1-AddedOffRampEdge 119257908#2 119257908#3" probability="1"/>
      </route_distribution>
    </routes>
  </flow>
  <flow id="rl_10" type="rl" route="routeghost0_0" departLane="best" departSpeed="25.5" begin="1" end="86400" vehsPerHour="512.0"/>
</routes>

Back to the top