public class ShortTableDecomp extends AbstractConstraint
* entries)| Constructor and Description |
|---|
ShortTableDecomp(IntVar[] x,
int[][] table,
int star)
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 ShortTableDecomp(IntVar[] x, int[][] table, int star)
x - variables to constraint, a non empty arraytable - array of valid solutions (second dimension must be of same size as the array x)star - the symbol representing "any" setValue 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.