From 4c5782121460f4617aec4508b8c6c7a6d903ed56 Mon Sep 17 00:00:00 2001 From: nkuehnel Date: Thu, 27 Jun 2024 13:43:27 +0200 Subject: [PATCH] use time as disutility --- .../contrib/drt/prebooking/PrebookingModeQSimModule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contribs/drt/src/main/java/org/matsim/contrib/drt/prebooking/PrebookingModeQSimModule.java b/contribs/drt/src/main/java/org/matsim/contrib/drt/prebooking/PrebookingModeQSimModule.java index e1ec52ac877..19274c3fd8b 100644 --- a/contribs/drt/src/main/java/org/matsim/contrib/drt/prebooking/PrebookingModeQSimModule.java +++ b/contribs/drt/src/main/java/org/matsim/contrib/drt/prebooking/PrebookingModeQSimModule.java @@ -17,6 +17,7 @@ import org.matsim.contrib.dvrp.fleet.DvrpVehicleLookup; import org.matsim.contrib.dvrp.optimizer.VrpOptimizer; import org.matsim.contrib.dvrp.passenger.*; +import org.matsim.contrib.dvrp.router.TimeAsTravelDisutility; import org.matsim.contrib.dvrp.run.AbstractDvrpModeQSimModule; import org.matsim.contrib.dvrp.schedule.ScheduleTimingUpdater; import org.matsim.core.api.experimental.events.EventsManager; @@ -101,7 +102,7 @@ protected void configureQSim() { case Routing: bindModal(LeastCostPathCalculator.class).toProvider(modalProvider(getter -> new SpeedyALTFactory().createPathCalculator(getter.getModal(Network.class), - getter.getModal(TravelDisutility.class), getter.getModal(TravelTime.class) + new TimeAsTravelDisutility(getter.getModal(TravelTime.class)), getter.getModal(TravelTime.class) ))); bindModal(RequestUnscheduler.class).to(modalKey(ComplexRequestUnscheduler.class)); break;