java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.scheduling.NoOverlap
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
NoOverlap constraint, ensures that a set of interval variables do not overlap in time.
The filtering algorithm implemented are:
- Overload checking
- Detectable precedences
- Not-First, Not-Last
- Edge-finding
- Author:
- Pierre Schaus, with the valuable contribution of Emma Legrand and Roger Kameugne for debugging
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpost()Initializes the constraint when it is posted to the solver.Return the precedence variables that are used to model the non-overlap constraint They are n*(n-1)/2 variables where n is the number of interval variables.Methods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, propagate, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
NoOverlap
-
-
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
-
precedenceVars
Return the precedence variables that are used to model the non-overlap constraint They are n*(n-1)/2 variables where n is the number of interval variables.- Returns:
- an array of boolean variables
-