Module org.maxicp

Class GeneralizedCumulativeSweepMax

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

public class GeneralizedCumulativeSweepMax extends AbstractCPConstraint
Sweep-line filtering algorithm for the Generalized Cumulative constraint enforcing a maximum capacity bound.

Supports optional activities, variable durations, and positive or negative resource heights.

  • Constructor Details

    • GeneralizedCumulativeSweepMax

      public GeneralizedCumulativeSweepMax(List<Activity> activities, int maxCapacity)
      Creates a generalized cumulative sweep constraint enforcing that the cumulative profile never exceeds maxCapacity.
      Parameters:
      activities - the list of activities contributing to the profile
      maxCapacity - the maximum allowed capacity (must be >= 0)
    • GeneralizedCumulativeSweepMax

      public GeneralizedCumulativeSweepMax(Activity[] activities, int maxCapacity)
      Creates a generalized cumulative sweep constraint enforcing that the cumulative profile never exceeds maxCapacity.
      Parameters:
      activities - the array of activities contributing to the profile
      maxCapacity - the maximum allowed capacity (must be >= 0)
  • Method Details