Skip to main content
FRAMES NO FRAMES

IloLengthOf

public IloIntExprArg IloLengthOf(const IloIntervalVar a, IloInt absVal=0)
Definition file: ilconcert/ilosmodel.h
Returns an expression representing the length of the interval variable.

This function returns an integer expression that represents the length of interval variable a whenever the interval variable is present. When the interval variable is absent, it returns the constant integer value absVal (by default: 0).

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