Class 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)  
    • 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 interface org.matsim.core.router.util.TravelTime
      • notifyMobsimBeforeCleanup

        public void notifyMobsimBeforeCleanup​(org.matsim.core.mobsim.framework.events.MobsimBeforeCleanupEvent e)
        Specified by:
        notifyMobsimBeforeCleanup in interface org.matsim.core.mobsim.framework.listeners.MobsimBeforeCleanupListener