Module org.maxicp

Class IsIncluded

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

public class IsIncluded extends AbstractCPConstraint
Constraint that enforces a boolean variable to be true if a value is included in a set.
  • Constructor Details

    • IsIncluded

      public IsIncluded(CPBoolVar bool, CPSetVar set, int v)
      Creates a constraint that links a boolean variable to the inclusion of a value in a set.
      Parameters:
      bool - the boolean variable
      set - the set variable
      v - the value to be included/excluded
  • Method Details