|
MATSim API | |||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
|---|---|
| RoadPricingSchemeI | |
| Class Summary | |
|---|---|
| CalcPaidToll | Calculates the toll agents pay during a simulation by analyzing events. |
| PlansCalcAreaTollRoute | A special router for complete plans that assigns the best routes to a plan with respect to an area toll. |
| RoadPricingReaderXMLv1 | Reads XML files containing a RoadPricingScheme according to roadpricing_v1.dtd. |
| RoadPricingScheme | A road pricing scheme (sometimes also called toll scheme) contains the type of the toll, a list of the tolled links and the (time-dependent) toll amount agents have to pay. |
| RoadPricingScheme.Cost | A single, time-dependent toll-amount for a roadpricing scheme. |
| RoadPricingWriterXMLv1 | Writes a RoadPricingScheme to a file according to roadpricing_v1.dtd. |
| TravelDisutilityIncludingToll | Calculates the travel disutility for links, including tolls. |
This package provides functionality to simulate different road-pricing scenarios in MATSim.
It provides support for different toll schemes, namely distance tolls, cordon tolls and area tolls. The
MATSim Controler has support for the roadpricing package built in, so it
only needs to be activated with the corresponding config-settings (see below).
The toll schemes are described in special XML files (see below). All supported toll
schemes can be limited upon a part of the network and can be time-dependent (that means that the amount
agents have to pay for the toll can differ during the simulated day).
The specified toll amount should be in respect to the scoring function used. Best practice is that the
scoring function monetizes the the utility, in that case monetary values can be used for the toll amount.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE roadpricing SYSTEM "http://www.matsim.org/files/dtd/roadpricing_v1.dtd">
<roadpricing type="distance" name="equil-net distance-toll for tests">
<description>A simple distance toll scheme for the equil-network.</description>
<links>
<link id="6" />
<link id="15" />
</links>
<!-- amount: [monetary unit] / [link length unit] -->
<cost start_time="06:00" end_time="10:00" amount="0.00020" />
<cost start_time="10:00" end_time="15:00" amount="0.00010" />
<cost start_time="15:00" end_time="19:00" amount="0.00020" />
</roadpricing>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE roadpricing SYSTEM "http://www.matsim.org/files/dtd/roadpricing_v1.dtd">
<roadpricing type="cordon" name="equil-net cordon-toll">
<description>A simple cordon toll scheme for the equil-network.</description>
<links>
<link id="6" />
<link id="15" />
</links>
<!-- amount: [monetary unit] / [traveling across a tolled link.] -->
<cost start_time="06:00" end_time="10:00" amount="1.00" />
<cost start_time="10:00" end_time="15:00" amount="0.50" />
<cost start_time="15:00" end_time="19:00" amount="1.00" />
</roadpricing>
<links>
<link id="6" />
<link id="15">
<cost start_time="06:00" end_time="10:00" amount="1.00" />
<cost start_time="10:00" end_time="15:00" amount="0.50" />
<cost start_time="15:00" end_time="19:00" amount="1.00" />
</link>
</links>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE roadpricing SYSTEM "http://matsim.org/files/dtd/roadpricing_v1.dtd">
<roadpricing type="area" name="equil-net area-toll">
<description>A simple area toll scheme for the equil-network.</description>
<links>
<link id="6" />
<link id="15" />
</links>
<!-- amount: [monetary unit] / [simulations] -->
<cost start_time="06:00" end_time="10:00" amount="2.00" />
<cost start_time="15:00" end_time="19:00" amount="2.00" />
</roadpricing>
Controler, prepare the
road pricing XML file (more details and examples can be found with the description of each
supported toll scheme). Then add the following part to your configuration:
<module name="scenario"> <param name="useRoadpricing" value="true" /> </module>
<module name="roadpricing"> <param name="tollLinksFile" value="path/to/your/roadpricing-file.xml" /> </module>As soon as road pricing is switched on in the scenario config module and the parameter
tollLinksFile is set, the Controler will load the file and the required
classes to simulate the road pricing scenario.
org.matsim.roadpricing.TollTravelCostCalculator
as TravelDisutility-object for routers.PlansCalcAreaTollRoute as
routing algorithm, together with a non-toll TravelCost.Controler takes care of all of these details, so you only have to care about
this if you're not using (or are using a modified version of) the Controler.
|
MATSim API | |||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||