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:
parent
3c1e8bc9d1
commit
a87881ee59
1 changed files with 3 additions and 0 deletions
|
|
@ -123,6 +123,9 @@ public final class RuinWorst extends AbstractRuinStrategy {
|
||||||
actBefore = actToEval;
|
actBefore = actToEval;
|
||||||
actToEval = act;
|
actToEval = act;
|
||||||
}
|
}
|
||||||
|
if (actToEval == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
double savings = savings(route, actBefore, actToEval, route.getEnd());
|
double savings = savings(route, actBefore, actToEval, route.getEnd());
|
||||||
Job job = ((TourActivity.JobActivity) actToEval).getJob();
|
Job job = ((TourActivity.JobActivity) actToEval).getJob();
|
||||||
if (!savingsMap.containsKey(job)) {
|
if (!savingsMap.containsKey(job)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue