5.88. consecutive_values
DESCRIPTION | LINKS |
- Origin
- Constraint
- Argument
- Restriction
- Purpose
Constraint the difference between the largest and the smallest values of the collection to be equal to the number of distinct values assigned to the variables of the collection minus one (i.e.,Β there is no holes at all within the used values).
- Example
-
The constraint holds since all values between value 3 and value 5 are actually used.
- Typical
- Symmetries
Items of are permutable.
One and the same constant can be added to the attribute of all items of .
- Counting
-
Length () 2 3 4 5 6 7 8 Solutions 7 34 217 1716 16159 176366 2187637 Number of solutions for : domains
- See also
implied by: , , .
- Keywords
- Cond. implications