Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
adjust to changes in MATSim-libs
Browse files Browse the repository at this point in the history
  • Loading branch information
kt86 committed Sep 30, 2024
1 parent 51e3896 commit 1f08596
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public static Carrier solveVrpWithJsprit(Carrier carrier, Scenario scenario) {

CarrierPlan plan = MatsimJspritFactory.createPlan(carrier, solution);
NetworkRouter.routePlan(plan, netbasedTransportCosts);
carrier.addPlan(plan);
carrier.setSelectedPlan(plan);
return carrier;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ protected void scheduleResource() {
CarrierPlan plan = new CarrierPlan(carrier, unifyTourIds(scheduledPlans));
plan.setScore(CarrierSchedulerUtils.sumUpScore(scheduledPlans));
plan.setJspritScore(CarrierSchedulerUtils.sumUpJspritScore(scheduledPlans));
carrier.addPlan(plan);
carrier.setSelectedPlan(plan);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ protected void scheduleResource() {
}
CarrierPlan plan = new CarrierPlan(carrier, scheduledTours);
plan.setScore(CarrierSchedulerUtils.sumUpScore(scheduledPlans));
carrier.addPlan(plan);
carrier.setSelectedPlan(plan);
}

Expand Down

0 comments on commit 1f08596

Please sign in to comment.