public class Element2D extends AbstractConstraint
matrix[x][y] = z
Constructor and Description |
---|
Element2D(int[][] mat,
IntVar x,
IntVar y,
IntVar z)
Creates an element constraint
mat[x][y] = z |
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, setScheduled
public void post()
Constraint
post
in interface Constraint
post
in class AbstractConstraint
public void propagate()
Constraint
propagate
in interface Constraint
propagate
in class AbstractConstraint
Copyright © 2018 Laurent Michel, Pierre Schaus, Pascal Van Hentenryck. All rights reserved.