update and fix examples

This commit is contained in:
Laurent Perron
2022-09-09 16:49:24 +02:00
parent 9931205f7c
commit 9321ab2096
29 changed files with 110 additions and 14 deletions

View File

@@ -75,7 +75,7 @@ public class BalanceGroupSat
model.AddLinearConstraint(LinearExpr.Sum(itemsInGroup), numItemsPerGroup, numItemsPerGroup);
}
//# One item must belong to exactly one group.
// # One item must belong to exactly one group.
foreach (var item in allItems)
{
var groupsForItem = allGroups.Select(x => itemInGroup[item, x]).ToArray();