As a note, when I saw the question by Tias yesterday, I briefly looked
at the documentation for all_different. I had assumed that there would
be a version that accepted optional variables, but my reading of the
documentation led me astray. The text
"Constrain the elements in the array x to be pairwise different or absent."
reads to me as if only one absent value is allowed (which I found an
odd constraint to have, but did not question). It might not be the
right reading of the text, but I think it might be a good idea to
expand it a bit further to clarify that multiple absent values are
allowed.
On a related note, I was surprised to find that the all_different
family does not support variables with enumerated values, just var int
variables. I would have thought that both all_different (with and
without optionality) and all_different_except would have enum-handling
versions.
Cheers,
Mikael
--
Mikael Zayenz Lagerkvist