change routing disjunction API to use list of int instead of int64 for nodes

This commit is contained in:
Laurent Perron
2018-12-12 11:02:24 +01:00
parent b5dcf54a27
commit 2861b24ddb
17 changed files with 42 additions and 44 deletions

View File

@@ -221,7 +221,7 @@ public class CapacitatedVehicleRoutingProblemWithTimeWindows {
timeDimension
.cumulVar(order)
.setRange(orderTimeWindows.get(order).first, orderTimeWindows.get(order).second);
long[] orderIndices = {manager.nodeToIndex(order)};
int[] orderIndices = {manager.nodeToIndex(order)};
model.addDisjunction(orderIndices, orderPenalties.get(order));
}