Strategy Modules

These are modules that can be used via the syntax

	<module name="strategy" >
		<param name="ModuleProbability_1" value="0.1" />
		<param name="Module_1" value="ChangeLegMode" />
                <param name="ModuleProbability_2" value="0.1" />
                <param name="Module_2" value="TimeAllocationMutator" />
	</module>

Replanning modules are numbered. Also, each module is given a weight which determines the probability by which the course of action represented by the module is taken. In this example, each person stands a chance of 1/2 that their transport mode is changed, and a chance of 1/2 that their time allocation is changed.  (The weights are renormalized so that they add up to one.)

The replanning modules that are understood by MATSim are defined in the class StrategyManagerConfigLoader.  In addition, you can program your own replanning modules; see tutorial.programming in matsim/src/main/java for examples.

It is not clear which combinations of these modules can be used together. Depending on required features, special variants sometimes need to be used. The following table tries to give an overview:

Choice dimension Default Strategy Transit Transit & Parking
departure time choice TimeAllocationMutator TransitTimeAllocationMutator ?
route choice ReRoute ReRoute
mode choice
(all legs get same mode)
ChangeLegMode TransitChangeLegMode
mode choice
(each leg can have a different mode)
ChangeSingleLegMode TransitChangeSingleLegMode ?
mode choice
(subtour-based)
SubtourModeChoice TransitSubtourModeChoice ?
location choice LocationChoice ?
       
       
       

Legend:

  • n/a means this choice dimension is not supported/available for the specified feature
  • ? means there is no known implementation available

 

 


Warning: Table 'watchdog' is read only query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;sessions&amp;#039; is read only\nquery: UPDATE sessions SET uid = 0, cache = 0, hostname = &amp;#039;38.107.179.232&amp;#039;, session = &amp;#039;&amp;#039;, timestamp = 1328354525 WHERE sid = &amp;#039;e972b2ab7dd755a2094beea8ac708f02&amp;#039;</em> in <em>/home01/vsp_access/matsimwww/includes/database.mysql.inc</em> on line <em>174</em>.', 2, '', 'http://matsim.org/node/478', '', '38.107.179.232', 1328354525) in /home01/vsp_access/matsimwww/includes/database.mysql.inc on line 174