diff --git a/jsprit-core/src/main/java/algorithms/ServiceInsertionCalculator.java b/jsprit-core/src/main/java/algorithms/ServiceInsertionCalculator.java index 1c1193e8..6e17dba4 100644 --- a/jsprit-core/src/main/java/algorithms/ServiceInsertionCalculator.java +++ b/jsprit-core/src/main/java/algorithms/ServiceInsertionCalculator.java @@ -122,6 +122,7 @@ final class ServiceInsertionCalculator implements JobInsertionCostsCalculator{ } else if(status.equals(ConstraintsStatus.NOT_FULFILLED_BREAK)){ loopBroken = true; + break; } } double nextActArrTime = prevActStartTime + transportCosts.getTransportTime(prevAct.getLocationId(), nextAct.getLocationId(), prevActStartTime, newDriver, newVehicle);