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

fixed bug #112 and #114

This commit is contained in:
oblonski 2014-07-30 12:18:56 +02:00
parent bca9323c67
commit 58c9030b8a
3 changed files with 270 additions and 5 deletions

View file

@ -64,7 +64,8 @@ final class VehicleTypeDependentJobInsertionCalculator implements JobInsertionCo
}
private void getInitialVehicleIds() {
for(VehicleRoute initialRoute : vrp.getInitialVehicleRoutes()){
Collection<VehicleRoute> initialVehicleRoutes = vrp.getInitialVehicleRoutes();
for(VehicleRoute initialRoute : initialVehicleRoutes){
initialVehicleIds.add(initialRoute.getVehicle().getId());
}
}