public class NegTableCT extends AbstractConstraint
Constructor and Description |
---|
NegTableCT(IntVar[] x,
int[][] table)
Negative Table constraint.
|
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 NegTableCT(IntVar[] x, int[][] table)
Assignment of x_0=v_0, x_1=v_1,...
only valid if there does not
exists a row (v_0, v_1, ...)
in the table.
The table represents the infeasible assignments for the variables.
x
- the variables to constraint. x is not empty.table
- the array of invalid solutions (second dimension must be of same size as the array x)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.