public class Or extends AbstractConstraint
x1 or x2 or ... xn| Constructor and Description |
|---|
Or(BoolVar[] x)
Creates a logical or constraint: at least one variable is true:
x1 or x2 or ... xn |
| 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 Or(BoolVar[] x)
x1 or x2 or ... xnx - the variables in the scope of the constraintpublic 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.