Class Cumulative


  • public class Cumulative
    extends Constraint
    Cumulative constraint
    Since:
    22/10/13
    Author:
    Jean-Guillaume Fages
    • Constructor Detail

      • Cumulative

        public Cumulative​(Task[] tasks,
                          IntVar[] heights,
                          IntVar capacity,
                          boolean graphBased,
                          Cumulative.Filter... filters)
        Cumulative constraint
        Parameters:
        tasks - task variables (embed start, duration and end variables)
        heights - height variables (represent the consumption of each task on the resource)
        capacity - maximal capacity of the resource (same at each point in time)
        graphBased - parameter indicating how to filter: - TRUE: applies on subset of overlapping tasks - FALSE: applies on all tasks
        filters - Filtering algorithm to use: - TIME: filters time-table from considering each point in time (efficient in practice as long as the time horizon is not too high) - SWEEP: filters time-table with a sweep-based algorithm - NRJ: greedy energy-based filter. BEWARE: should not be used alone, use it in addition to either SWEEP or TIME.
      • Cumulative

        public Cumulative​(Task[] tasks,
                          IntVar[] heights,
                          IntVar capacity,
                          boolean graphBased,
                          CumulFilter... filters)
        Cumulative constraint
        Parameters:
        tasks - task variables (embed start, duration and end variables)
        heights - height variables (represent the consumption of each task on the resource)
        capacity - maximal capacity of the resource (same at each point in time)
        graphBased - parameter indicating how to filter: - TRUE: applies on subset of overlapping tasks - FALSE: applies on all tasks
        filters - Filtering algorithm to use: - TIME: filters time-table from considering each point in time (efficient in practice as long as the time horizon is not too high) - SWEEP: filters time-table with a sweep-based algorithm - NRJ: greedy energy-based filter. BEWARE: should not be used alone, use it in addition to either SWEEP or TIME.