public class Element1D extends AbstractConstraint
array[y] = z
Constructor and Description |
---|
Element1D(int[] array,
IntVar y,
IntVar z)
Creates an element constraint
array[y] = z |
Modifier and Type | Method and Description |
---|---|
void |
post()
Initializes the constraint when it is posted to the solver.
|
getSolver, isActive, isScheduled, propagate, setActive, setScheduled
public void post()
Constraint
post
in interface Constraint
post
in class AbstractConstraint
Copyright © 2018 Laurent Michel, Pierre Schaus, Pascal Van Hentenryck. All rights reserved.