22 variables_ = variables;
28 foreach (
IntVar v
in variables_)
36 private IntVar[] variables_;
72 new long[][] {new long[] {0, 1},
75 model.Add(expr == 2).OnlyEnforceIf(b2);
78 ILiteral b3 = model.NewBoolVar(
"b3");
79 model.Add(x == 7).OnlyEnforceIf(b3);
80 model.Add(expr == 3).OnlyEnforceIf(b3);
83 model.AddBoolOr(
new ILiteral[] { b0, b2, b3 });
86 model.AddDecisionStrategy(
VarArraySolutionPrinter(IntVar[] variables)
static Domain FromValues(long[] values)
static Domain FromIntervals(long[][] intervals)
override void OnSolutionCallback()