java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.AtLeastNValueFWC
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
- Direct Known Subclasses:
AllDifferentFWC
-
Constructor Summary
ConstructorsConstructorDescriptionAtLeastNValueFWC(CPIntVar[] x, CPIntVar nValue) The number of values that are used in the array x is at least nValue #{x[i] | i in 0..x.length-1} >= nValue -
Method Summary
Methods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
AtLeastNValueFWC
The number of values that are used in the array x is at least nValue #{x[i] | i in 0..x.length-1} >= nValue- Parameters:
x- array of variablesnValue- the number of values that are used in the array x is at least nValue
-
-
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
-
propagate
public void propagate()Description copied from interface:CPConstraintPropagates the constraint.- Specified by:
propagatein interfaceCPConstraint- Overrides:
propagatein classAbstractCPConstraint
-