public class NotEqual extends AbstractConstraint
| Constructor and Description |
|---|
NotEqual(IntVar x,
IntVar y)
Creates a constraint such
that {@code x !
|
NotEqual(IntVar x,
IntVar y,
int c)
Creates a constraint such
that {@code x !
|
| Modifier and Type | Method and Description |
|---|---|
void |
post()
Initializes the constraint when it is posted to the solver.
|
void |
propagate()
Propagates the constraint.
|
getSolver, isActive, isScheduled, setActive, setScheduledpublic NotEqual(IntVar x, IntVar y, int c)
x != y + cx - the left membery - the right memerc - the offset value on yFactory.notEqual(IntVar, IntVar, int)public NotEqual(IntVar x, IntVar y)
x != yx - the left membery - the right memerFactory.notEqual(IntVar, IntVar)public void post()
Constraintpost in interface Constraintpost in class AbstractConstraintpublic void propagate()
Constraintpropagate in interface Constraintpropagate in class AbstractConstraintCopyright © 2018 Laurent Michel, Pierre Schaus, Pascal Van Hentenryck. All rights reserved.