Skip to content

Commit

Permalink
use time as disutility
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuehnel committed Jun 27, 2024
1 parent 0282b8a commit 4c57821
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4c57821

Please sign in to comment.