Module org.maxicp

Class EndBeforeStart

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

public class EndBeforeStart extends AbstractCPConstraint
Constrains interval A to end before or at the start of interval B if both are present.
Author:
Pierre Schaus
  • Constructor Details

    • EndBeforeStart

      public EndBeforeStart(CPIntervalVar A, CPIntervalVar B)
      Creates a constraint enforcing end(A) <= start(B) whenever both A and B are present.
      Parameters:
      A - the first interval variable
      B - the second interval variable
  • Method Details