-
Notifications
You must be signed in to change notification settings - Fork 179
faq 92274700
by Johan W. Joubert on 2016-11-01 05:41:18
Question asked by Koen Mommens:
is it possible to have multiple road pricing schemes (all of the distance type) into one simulation? To for example have a scheme for vans with a certain price for certain links and a scheme for truck with another price for other links, and barges, etc. If it is possible, could you give me a tip how to do so?
by Johan W. Joubert on 2016-11-01 05:52:26
In short, yes, it should be doable. There is a org.matsim.roadpricing.TollFactor
interface that allows you to multiply the base toll per link (assumed to be constant) by a certain factor. You can be as creative as you need to be with the toll factor as it can depend on person, vehicle, time of day, link (or a combination of them all).
In the org.matsim.roadpricing.RunRoadPricingExample
example, you add an overriding module called RoadPricingModule
which is an instance of an AbstractModule
. It's probably not the most elegant way, and yes, we will clean up the different ways to set the toll schemes, but you can either create/construct the RoadPricingModule
with a RoadPricingScheme
as an argument, or create a RoadPricingSchemeProvider
... the main thing being that this pricing scheme should be of the type
org.matsim.roadpricing.RoadPricingSchemeUsingTollFactor
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq