Module org.maxicp

Interface CumulFunction

All Known Subinterfaces:
CPCumulFunction
All Known Implementing Classes:
CPFlatCumulFunction, CPMinusCumulFunction, CPPlusCumulFunction, CPPulseCumulFunction, CPStepAtEndCumulFunction, CPStepAtStartCumulFunction, CPSumCumulFunction, FlatCumulFunction, MinusCumulFunction, PlusCumulFunction, PulseCumulFunction, StepAtEndCumulFunction, StepAtStartCumulFunction, SumCumulFunction

public interface CumulFunction
Represents a Cumulative Function as described in

Reasoning with conditional time-intervals. part ii: An algebraical model for resources Laborie, P., Rogerie, J., Shaw, P., VilĂ­m, P

See The article.

Author:
Pierre Schaus, Charles Thomas, Augustin Delecluse
  • Method Details

    • heightAtStart

      IntExpression heightAtStart(IntervalVar interval)
      Returns an IntExpression representing the height of the cumul function at the start of the interval variable given in parameter.
      Parameters:
      interval - an IntervalVar
      Returns:
      an int expression representing the height of the cumul function at the start of interval
    • heightAtEnd

      IntExpression heightAtEnd(IntervalVar interval)
      Returns an IntExpression representing the height of the cumul function at the end of the interval variable given in parameter.
      Parameters:
      interval - an IntervalVar
      Returns:
      an int expression representing the height of the cumul function at the end of interval
    • inScope

      boolean inScope(IntervalVar interval)
      Returns whether the interval var given in parameter contributes to the cumul function
      Parameters:
      interval - an IntervalVar
      Returns:
      a boolean that indicates if interval contributes to the cumul function.