Module org.maxicp

Class Subset

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

public class Subset extends AbstractCPConstraint
Constraint that enforces that one set variable is a subset of another set variable.
  • Constructor Details

    • Subset

      public Subset(CPSetVar set1, CPSetVar set2)
      Creates a constraint that enforces that set1 is a subset of set2.
      Parameters:
      set1 - the first set variable
      set2 - the second set variable
  • Method Details