Module org.maxicp

Class ShortTableCT

java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.ShortTableCT
All Implemented Interfaces:
CPConstraint, ConcreteConstraint<ConcreteCPModel>

public class ShortTableCT extends AbstractCPConstraint
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 Details

    • ShortTableCT

      public ShortTableCT(CPIntVar[] x, int[][] table, int star)
      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