24 variables_ = variables;
30 foreach (
IntVar v
in variables_)
42 return solution_count_;
45 private int solution_count_;
46 private IntVar[] variables_;
73 IntVar[] letters =
new IntVar[] {c, p, i, s, f, u, n, t, r, e};
81 model.
Add(c * kBase + p + i * kBase + s + f * kBase * kBase + u * kBase + n ==
82 t * kBase * kBase * kBase + r * kBase * kBase + u * kBase + e);
92 Console.WriteLine(
"Statistics");
93 Console.WriteLine($
" - conflicts : {solver.NumConflicts()}");
94 Console.WriteLine($
" - branches : {solver.NumBranches()}");
95 Console.WriteLine($
" - wall time : {solver.WallTime()} s");
96 Console.WriteLine($
" - number of solutions found: {cb.SolutionCount()}");
VarArraySolutionPrinter(IntVar[] variables)
override void OnSolutionCallback()