Module org.maxicp

Class NoOverlapBC

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

public class NoOverlapBC extends AbstractCPConstraint
Bound Consistency filtering for the NoOverlap constraint
Author:
Pierre Schaus
  • Constructor Details

  • Method Details

    • post

      public void post()
      Description copied from interface: CPConstraint
      Initializes the constraint when it is posted to the solver.
      Specified by:
      post in interface CPConstraint
      Overrides:
      post in class AbstractCPConstraint
    • precedenceVars

      public CPBoolVar[] 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