diff --git a/jsprit-core/src/main/java/jsprit/core/problem/constraint/VehicleDependentTimeWindowConstraints.java b/jsprit-core/src/main/java/jsprit/core/problem/constraint/VehicleDependentTimeWindowConstraints.java index 907dc1ce..85a4238d 100644 --- a/jsprit-core/src/main/java/jsprit/core/problem/constraint/VehicleDependentTimeWindowConstraints.java +++ b/jsprit-core/src/main/java/jsprit/core/problem/constraint/VehicleDependentTimeWindowConstraints.java @@ -61,8 +61,8 @@ public class VehicleDependentTimeWindowConstraints implements HardActivityStateL else{ //try to get latest_operation_start_time of newVehicle latestArrTimeAtNextAct = states.getActivityState(nextAct, iFacts.getNewVehicle(), StateFactory.LATEST_OPERATION_START_TIME ,Double.class); - if(latestArrTimeAtNextAct == null) //try to get latest_operation_start_time of currVehicle - latestArrTimeAtNextAct = states.getActivityState(nextAct, iFacts.getRoute().getVehicle(), StateFactory.LATEST_OPERATION_START_TIME ,Double.class); +// if(latestArrTimeAtNextAct == null) //try to get latest_operation_start_time of currVehicle +// latestArrTimeAtNextAct = states.getActivityState(nextAct, iFacts.getRoute().getVehicle(), StateFactory.LATEST_OPERATION_START_TIME ,Double.class); if(latestArrTimeAtNextAct == null) //otherwise set it to theoretical_latest_operation_startTime latestArrTimeAtNextAct=nextAct.getTheoreticalLatestOperationStartTime(); nextActLocation = nextAct.getLocationId();