java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.seqvar.RelaxedSequence
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
Imposes that the sequence defined
by the provided orderedSequence where the relaxed nodes
have been removed is a subsequence of the provided sequence variable.
This constraint is useful for Large Neighborhood Search to restrict
some subsequence on the next restart.
-
Constructor Summary
ConstructorsConstructorDescriptionRelaxedSequence(CPSeqVar sequence, int[] orderedSequence, Set<Integer> relaxed) -
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
-
RelaxedSequence
-
-
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
-