Module org.maxicp

Class NegTableCT

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

public class NegTableCT extends AbstractCPConstraint
Implementation of Compact Table for Negative Table algorithm described in

Extending Compact-Table to Negative and Short Tables Helene Verhaeghe, Christophe Lecoutre, Pierre Schaus

See The article.

  • Constructor Details

    • NegTableCT

      public NegTableCT(CPIntVar[] x, int[][] table)
      Negative Table constraint.

      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.

      Parameters:
      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)
  • Method Details