Module org.maxicp

Class GeneralizedCumulativeSweepMin

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

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

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

  • Constructor Details

    • GeneralizedCumulativeSweepMin

      public GeneralizedCumulativeSweepMin(List<Activity> activities, int minCapacity)
      Creates a generalized cumulative sweep constraint enforcing that the cumulative profile stays at or above minCapacity whenever at least one activity is active.
      Parameters:
      activities - the list of activities contributing to the profile
      minCapacity - the minimum required capacity (must be >= 0)
    • GeneralizedCumulativeSweepMin

      public GeneralizedCumulativeSweepMin(Activity[] activities, int minCapacity)
      Creates a generalized cumulative sweep constraint enforcing that the cumulative profile stays at or above minCapacity whenever at least one activity is active.
      Parameters:
      activities - the array of activities contributing to the profile
      minCapacity - the minimum required capacity (must be >= 0)
  • Method Details