Now that SparseBitSet is available as backtrackable structure, the need for specific variable that support sparse enumerated domain does not exist anymore.
For example:
Model<?> model = new Model<>();
IntVar[] xs = model.intVarArray(3, new int[]{-15785984, 0, 6024992});
model.post(model.allDifferent(xs, "AC"));
Solver solver = model.getSolver();
solver.findAllSolutions();
Now that
SparseBitSet
is available as backtrackable structure, the need for specific variable that support sparse enumerated domain does not exist anymore. For example:I didn't observe any performance issue.