Class DvrpOfflineTravelTimeEstimator
- java.lang.Object
-
- org.matsim.contrib.dvrp.trafficmonitoring.DvrpOfflineTravelTimeEstimator
-
- All Implemented Interfaces:
EventListener
,DvrpTravelTimeEstimator
,org.matsim.core.api.internal.MatsimExtensionPoint
,org.matsim.core.mobsim.framework.listeners.MobsimBeforeCleanupListener
,org.matsim.core.mobsim.framework.listeners.MobsimListener
,org.matsim.core.mobsim.qsim.components.QSimComponent
,org.matsim.core.router.util.TravelTime
public class DvrpOfflineTravelTimeEstimator extends Object implements DvrpTravelTimeEstimator, org.matsim.core.mobsim.framework.listeners.MobsimBeforeCleanupListener
Used for offline estimation of travel times for VrpOptimizer by means of the exponential moving average. The weighting decrease, alpha, must be in (0,1]. We suggest small values of alpha, e.g. 0.05.The averaging starts from the initial travel time estimates. If not provided, the free-speed TTs is used as the initial estimates
- Author:
- michalm
-
-
Constructor Summary
Constructors Constructor Description DvrpOfflineTravelTimeEstimator(org.matsim.core.router.util.TravelTime initialTT, org.matsim.core.router.util.TravelTime observedTT, org.matsim.api.core.v01.network.Network network, org.matsim.core.config.groups.TravelTimeCalculatorConfigGroup ttCalcConfig, double travelTimeEstimationAlpha)
DvrpOfflineTravelTimeEstimator(org.matsim.core.router.util.TravelTime initialTT, org.matsim.core.router.util.TravelTime observedTT, org.matsim.api.core.v01.network.Network network, org.matsim.core.config.groups.TravelTimeCalculatorConfigGroup ttCalcConfig, DvrpConfigGroup dvrpConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getLinkTravelTime(org.matsim.api.core.v01.network.Link link, double time, org.matsim.api.core.v01.population.Person person, org.matsim.vehicles.Vehicle vehicle)
void
notifyMobsimBeforeCleanup(org.matsim.core.mobsim.framework.events.MobsimBeforeCleanupEvent e)
-
-
-
Constructor Detail
-
DvrpOfflineTravelTimeEstimator
@Inject public DvrpOfflineTravelTimeEstimator(org.matsim.core.router.util.TravelTime initialTT, org.matsim.core.router.util.TravelTime observedTT, org.matsim.api.core.v01.network.Network network, org.matsim.core.config.groups.TravelTimeCalculatorConfigGroup ttCalcConfig, DvrpConfigGroup dvrpConfig)
-
DvrpOfflineTravelTimeEstimator
public DvrpOfflineTravelTimeEstimator(org.matsim.core.router.util.TravelTime initialTT, org.matsim.core.router.util.TravelTime observedTT, org.matsim.api.core.v01.network.Network network, org.matsim.core.config.groups.TravelTimeCalculatorConfigGroup ttCalcConfig, double travelTimeEstimationAlpha)
-
-
Method Detail
-
getLinkTravelTime
public double getLinkTravelTime(org.matsim.api.core.v01.network.Link link, double time, org.matsim.api.core.v01.population.Person person, org.matsim.vehicles.Vehicle vehicle)
- Specified by:
getLinkTravelTime
in interfaceorg.matsim.core.router.util.TravelTime
-
notifyMobsimBeforeCleanup
public void notifyMobsimBeforeCleanup(org.matsim.core.mobsim.framework.events.MobsimBeforeCleanupEvent e)
- Specified by:
notifyMobsimBeforeCleanup
in interfaceorg.matsim.core.mobsim.framework.listeners.MobsimBeforeCleanupListener
-
-