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

final changes

This commit is contained in:
Iris 2018-03-08 10:49:19 +02:00
parent 4e8ed3a9c0
commit b8894c3276
2 changed files with 2 additions and 2 deletions

View file

@ -106,7 +106,7 @@ public class MaxTimeInVehicleConstraint implements HardActivityConstraint {
try {
minSlack = stateManager.getActivityState(nextAct, iFacts.getNewVehicle(), minSlackId, Double.class);
} catch (NullPointerException npe) {
//solving maxTimeInVehicle constraint
}
}
double directArrTimeNextAct = prevActDepTime + transportTime.getTransportTime(prevAct.getLocation(), nextAct.getLocation(), prevActDepTime, iFacts.getNewDriver(), iFacts.getNewVehicle());

View file

@ -220,7 +220,7 @@ public class MaxTimeInVehicleTest {
.build();
Delivery d2 = Delivery.Builder.newInstance("d2")
.setMaxTimeInVehicle(15)
.setMaxTimeInVehicle(14)
.setLocation(Location.newInstance(10, 5)).setServiceTime(2).build();
VehicleImpl v1 = VehicleImpl.Builder.newInstance("v1")