Module org.maxicp

Class Element1DDC

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

public class Element1DDC extends AbstractCPConstraint
Element1DDC constraint
Author:
pschaus
  • Constructor Details

    • Element1DDC

      public Element1DDC(int[] array, CPIntVar y, CPIntVar z)
      Creates a domain-consistent element constraint array[y] = z.
      Parameters:
      array - the 1D array of values to index
      y - the index variable
      z - the result variable
  • Method Details