mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
final changes
This commit is contained in:
parent
4e8ed3a9c0
commit
b8894c3276
2 changed files with 2 additions and 2 deletions
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue