revert last change on the routing API; report new best bound of the SAT solver in the log

This commit is contained in:
Laurent Perron
2018-12-14 14:25:52 +01:00
parent 887b150207
commit 39f30fb178
21 changed files with 122 additions and 94 deletions

View File

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