Module org.maxicp

Class CumulativeDecomposition

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

public class CumulativeDecomposition extends AbstractCPConstraint
Cumulative constraint with sum decomposition (very slow).
  • Constructor Details

    • CumulativeDecomposition

      public CumulativeDecomposition(CPIntVar[] start, int[] duration, int[] demand, int capa)
      Creates a cumulative constraint with a decomposition into sum constraint. At any time-point t, the sum of the demands of the activities overlapping t do not overlap the capacity.
      Parameters:
      start - the start time of each activities
      duration - the duration of each activities (non negative)
      demand - the demand of each activities, non negative
      capa - the capacity of the constraint
  • Method Details