Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Highlight
These steps are for the releases and nightly builds after 0.8.1x. For earlier versions, see bottom of the page.

...

This is an additional file required for mixed traffic conditions. Minimally, the maximum speed and passenger car equivalents (PCE) of a vehicle , and are required. These are stored as vehicle type for each person are set in this filein the vehicles.xml file. Depending on the vehicle source, additional information is required

If vehicle source in the config is set to

...

<param name="vehiclesSource" value="fromVehiclesData" />

vehicle information is also required. For example ...

...

For the mixed traffic conditions, the mobility simulation (currently only for "qsim") needs to be informed about the main modes, source of vehicles (defaultVehicle, modeVehicleTypesFromVehiclesData, fromVehiclesData), link dynamics (FIFO, PassingQ, SeepageQ) and traffic dynamics (queue, withHoles, kinematicWaves) etc.

<module name="qsim">
   ...
  <param name="vehiclesSource" value="modeVehicleTypesFromVehiclesData" />

...

  • network – same as above
  • plans – same as above
  • vehicles – until in the version 0.8.1x release, for mixed traffic,  only
       <param name="vehiclesSource" value="fromVehiclesData" />

           is supported. Therefore, vehicle type as well as vehicle information is required in the vehicles.xml file (same as described above).

  • Configuration 

    <module name="qsim">
       ...
      <param name="vehiclesSource" value="fromVehiclesData" />
      <param name="mainMode" value="car,bicycle" />
      <param name="linkDynamics" value="PassingQ" />
      <param name="trafficDynamics" value="queue" />
    </module>

     Main modes are physically simulated on the network, thus router needs to be informed about these modes as follows. 

    <module name="planscalcroute" >
       ...
      <param name="networkModes" value="car,bicycle" />
    </module>

    To calculate the dis-utility for the stated mode, the utility parameters should be set, i.e.

    <module name="planCalcScore">    
       <parameterset type="modeParams" >
         <param name="constant" value="0.0" />
         <param name="marginalUtilityOfDistance_util_m" value="0.0" />
         <param name="marginalUtilityOfTraveling_util_hr" value="-6.0" />
         <param name="mode" value="bicycle" />
          <param name="monetaryDistanceRate" value="0.0" />
       </parameterset>
    </module>


  • In addition to the above, network router needs a travel time and travel disutility calculator for all network modes other than car. This can be set as follows. One can set own travel time calculator and travel disutility factors.
    ...
    controler.addOverridingModule(new AbstractModule() {
     @Override
     public void install() {
     addTravelTimeBinding("bicycle").to(networkTravelTime());
     addTravelDisutilityFactoryBinding("bicycle").to(carTravelDisutilityFactoryKey());
     }
    });

The requirement of travel time and travel disutility calculators for modes other than car is made configurable in the later releases.  See 

Jira Legacy
serverJIRA (matsim.atlassian.net)
serverId39b78b4e-5e5e-31ca-ad6c-6e03846a9bf5
keyMATSIM-585
 for possible progress on this.

...