Module org.maxicp

Class IntervalVarLength

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

public class IntervalVarLength extends AbstractCPConstraint
Constraint linking the length (duration) of an interval variable var to an integer variable length.
Author:
Charles Thomas
  • Constructor Details

    • IntervalVarLength

      public IntervalVarLength(CPIntervalVar var, CPIntVar length)
      Creates a constraint linking length(var) to length.
      Parameters:
      var - the interval variable
      length - the integer variable representing the length of var
  • Method Details