Skip to main content
FRAMES NO FRAMES

IloOverlapLength

public IloIntExprArg IloOverlapLength(const IloEnv env, const IloIntervalVar a1, const IloIntervalVar a2, IloInt absVal=0)
Definition file: ilconcert/ilosmodel.h
Returns an expression representing the length of the overlap of two interval variables.

This function returns an integer expression that represents the length of the overlap of interval variable a and the interval variable b whenever the interval variables a and b are present. When the interval variable a or b is absent, the function returns the constant integer value absVal (zero by default).

For more information on expressions on interval variables, see the concept Expressions over Interval Variables.


IloOverlapLength

public IloIntExprArg IloOverlapLength(const IloEnv env, const IloIntervalVar a, IloInt start, IloInt end, IloInt absVal=0)
Definition file: ilconcert/ilosmodel.h
Returns an expression representing the length of the overlap of an interval variable and a constant interval.

This function returns an integer expression that represents the length of the overlap of interval variable a and the constant interval [start, end) whenever the interval variable a is present. When the interval variable a is absent, the function returns the constant integer value absVal (zero by default).

For more information on expressions on interval variables, see the concept Expressions over Interval Variables.