[ library(COLIBRI_DOC) | ]
X #< Y
X is strictly less than Y.
- X
- An integer term.
- Y
- An integer term.
Description
This constraints exists also in a reified form, (X #< Y) #= Bool, where Bool is an int variable ranging in 0..1.
Fail Conditions
Fails if the domains of the two terms cannot satisfy the inequality.
Resatisfiable
no
Examples
Success:
int_vars(int,[X,Y]), X #: 1 .. 10, Y #: 1 .. 10, X #< Y.
(gives X = _436{[1 .. 9]}, Y = _436{[2 .. 10]})
Fail:
int_vars(int,[X,Y]), X #: 1 .. 10, Y #: 15 .. 20, Y #< X.
See Also
#=< / 2, #\= / 2