1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

skip routes without JobActivities in RuinWorst

This commit is contained in:
Michal Maciejewski 2018-11-13 13:14:44 +01:00
parent 3c1e8bc9d1
commit a87881ee59
No known key found for this signature in database
GPG key ID: 015947E60A2AD77B

View file

@ -123,6 +123,9 @@ public final class RuinWorst extends AbstractRuinStrategy {
actBefore = actToEval;
actToEval = act;
}
if (actToEval == null) {
continue;
}
double savings = savings(route, actBefore, actToEval, route.getEnd());
Job job = ((TourActivity.JobActivity) actToEval).getJob();
if (!savingsMap.containsKey(job)) {