Next: Programming Constraint Propagation
Up: Finite-domain Constraint Solving
Previous: Composite constraints
  Contents
  Index
Boolean variables are represented as domain variables whose domains
are 0..1.
- and(?X,?Y,?Z)
Succeeds if
.
- and0(?X,?Y)
Succeeds if
.
- or(?X,?Y,?Z)
Succeeds if
.
- or1(?X,?Y)
Succeeds if
.
- not(?X,?Y)
Succeeds if
.
- equiv(?X,?Y,?Z)
Succeeds if
.
- xor(?X,?Y,?Z)
Succeeds if
.
- at_least_one(+L)
Succeeds if at least one element in L is equal to 1, where L is
a list of boolean variables or integers.
- at_most_one(+L)
Succeeds if at most one element in L is equal to 1, where L is
a list of boolean variables or integers.
- only_one(+L)
Succeeds if exactly one element in L is equal to 1, where L is
a list of boolean variables or integers.
Neng-Fa Zhou
1999-11-24