Updating Java examples to use new routing APIs

This commit is contained in:
furnon
2017-01-06 13:26:08 +00:00
parent 54c0dda121
commit 502d529fa3
3 changed files with 10 additions and 4 deletions

View File

@@ -216,7 +216,7 @@ public class CapacitatedVehicleRoutingProblemWithTimeWindows {
}
}
};
model.setVehicleCost(vehicle, manhattanCostCallback);
model.setArcCostEvaluatorOfVehicle(manhattanCostCallback, vehicle);
model.cumulVar(model.end(vehicle), "time").setMax(vehicleEndTime.get(vehicle));
}