[ library(gfd) | Reference Manual | Alphabetic Index ]

<ConsistencyModule:> neg(+Con)

Constraints Con is negated.


Equivalent to 0 #= (Con)

The reified constraint Con is negated. Con must be a constraint that has a corresponding reified form.

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 implemented using Gecode's MiniModel's rel() for both integer and boolean expressions, with sub-expressions/constraints not supported by MiniModel factored out and posted as auxiliary constraints.


This predicate is sensitive to its module context (tool predicate, see @/2).

See Also

neg / 2, or / 2, xor / 2, => / 2, <=> / 2, and / 2, suspend : neg / 1, ic : neg / 1