java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.CardinalityMinFWC
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
-
Constructor Summary
ConstructorsConstructorDescriptionCardinalityMinFWC(CPIntVar[] x, int[] lower) Constraint the minimum number of occurences of a range of values in X. -
Method Summary
Modifier and TypeMethodDescriptionvoidpost()Initializes the constraint when it is posted to the solver.Methods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, propagate, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
CardinalityMinFWC
Constraint the minimum number of occurences of a range of values in X.- Parameters:
x- The variables to constraint (at least one)lower- The upper cardinality bounds, lower[i] is the maximum number of occurences of value i in X
-
-
Method Details
-
post
public void post()Description copied from interface:CPConstraintInitializes the constraint when it is posted to the solver.- Specified by:
postin interfaceCPConstraint- Overrides:
postin classAbstractCPConstraint
-