[ library(gfd) | Reference Manual | Alphabetic Index ]
<ConsistencyModule:> all_ne(?Collection,?Y)
Constrains Collection to be not equal to Y.
- Collection
- Collection of integers or (domain) variables
- Y
- An integer or (domain) variable (array notation accepted)
Description
   Constrains every element in Collection to be greater than or equal
   to Y.
   ConsistencyModule is the optional module specification to give the 
   consistency level for the propagation for this constraint: 
   gfd_bc for bounds consistency, and gfd_gac for domain (generalised 
   arc) consistency. 
   This constraint is known as arith (with the not equal to relation)
   in the Global Constraint Catalog, and is implemented using
   Gecode's rel() constraint.
Examples
[eclipse 45]:  X :: 1..10, all_ne([1,3,4,5], X).
X = X{[2, 6 .. 10]}
[eclipse 46]: all_ne([1,3,4,5], 2).       % succeed
[eclipse 47]: all_ne([1,3,4,5], 4).       % fail
See Also
#=< / 2, all_le / 2, all_gt / 2, all_ge / 2, all_lt / 2, all_eq / 2