mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
driver breaks
This commit is contained in:
parent
778b141c3d
commit
be2358ab7c
2 changed files with 5 additions and 9 deletions
|
|
@ -103,10 +103,6 @@ final class BreakInsertionCalculator implements JobInsertionCostsCalculator{
|
|||
BreakActivity breakAct2Insert = (BreakActivity) activityFactory.createActivities(breakToInsert).get(0);
|
||||
insertionContext.getAssociatedActivities().add(breakAct2Insert);
|
||||
|
||||
boolean differentVehicles = false;
|
||||
if(!currentRoute.isEmpty()){
|
||||
differentVehicles = currentRoute.getVehicle() != newVehicle;
|
||||
}
|
||||
/*
|
||||
check hard constraints at route level
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public class BreakExample {
|
|||
*/
|
||||
final int WEIGHT_INDEX = 0;
|
||||
VehicleTypeImpl.Builder vehicleTypeBuilder = VehicleTypeImpl.Builder.newInstance("vehicleType")
|
||||
.addCapacityDimension(WEIGHT_INDEX, 2).setCostPerWaitingTime(1.);
|
||||
.addCapacityDimension(WEIGHT_INDEX, 2).setCostPerWaitingTime(1.0);
|
||||
VehicleType vehicleType = vehicleTypeBuilder.build();
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue