java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.ShortTableCT
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
Implementation of Compact Table for Short Table algorithm described in
Extending Compact-Table to Negative and Short Tables Helene Verhaeghe, Christophe Lecoutre, Pierre Schaus
See The article.
-
Constructor Summary
ConstructorsConstructorDescriptionShortTableCT(CPIntVar[] x, int[][] table, int star) Create a Table constraint with short tuples. -
Method Summary
Methods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
ShortTableCT
Create a Table constraint with short tuples.Assignment of
x_0=v_0, x_1=v_1,...only valid if there exists a row(v_0|*,v_1|*, ...)in the table.- Parameters:
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 table
-
-
Method Details
-
post
public void post()Description copied from interface:CPConstraintInitializes the constraint when it is posted to the solver.- Specified by:
postin interfaceCPConstraint- Overrides:
postin classAbstractCPConstraint
-
propagate
public void propagate()Description copied from interface:CPConstraintPropagates the constraint.- Specified by:
propagatein interfaceCPConstraint- Overrides:
propagatein classAbstractCPConstraint
-