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, setScheduledpublic 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()
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.