mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
experimental time scheduling
This commit is contained in:
parent
98a682077d
commit
6a1631fc9a
1 changed files with 3 additions and 0 deletions
|
|
@ -64,6 +64,9 @@ class CalculatesServiceInsertionWithTimeScheduling implements JobInsertionCostsC
|
||||||
departureTime = departureTimeKnowledge.get(RandomNumberGeneration.getRandom().nextInt(departureTimeKnowledge.size()));
|
departureTime = departureTimeKnowledge.get(RandomNumberGeneration.getRandom().nextInt(departureTimeKnowledge.size()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(!currentRoute.getVehicle().getId().equals(newVehicle.getId())){
|
||||||
|
departureTime = currentRoute.getDepartureTime();
|
||||||
|
}
|
||||||
|
|
||||||
InsertionData insertionData = jic.getInsertionData(currentRoute, jobToInsert, newVehicle, departureTime, newDriver, bestKnownScore);
|
InsertionData insertionData = jic.getInsertionData(currentRoute, jobToInsert, newVehicle, departureTime, newDriver, bestKnownScore);
|
||||||
// if(!(insertionData instanceof NoInsertionFound) && insertionData.getVehicleDepartureTime() < 28000){
|
// if(!(insertionData instanceof NoInsertionFound) && insertionData.getVehicleDepartureTime() < 28000){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue