Module org.maxicp

Class SetCard

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

public class SetCard extends AbstractCPConstraint
Constraint that links the cardinality of a set variable to an integer variable.
  • Constructor Details

    • SetCard

      public SetCard(CPSetVar set, CPIntVar card)
      Creates a constraint that links a set variable to the cardinality of the set.
      Parameters:
      set - the set variable
      card - the integer variable representing the cardinality
  • Method Details