public class ShortTableCT extends AbstractConstraint
* entries)| Constructor and Description |
|---|
ShortTableCT(IntVar[] x,
int[][] table,
int star)
Create a Table constraint with short tuples.
|
| 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 ShortTableCT(IntVar[] x, int[][] table, int star)
Assignment of x_0=v_0, x_1=v_1,... only valid if there exists a
row (v_0|*,v_1|*, ...) in the table.
x - the variables to constraint. x must be non empty.table - the array of valid solutions (second dimension must be of same size as the array x)star - the * symbol representing "any" value in the tablepublic 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.