Skip to main content
FRAMES NO FRAMES

IloLengthEval

public IloNumExprArg IloLengthEval(const IloIntervalVar a, const IloNumToNumSegmentFunction f, IloNum absVal=0)
Definition file: ilconcert/ilosmodel.h
Returns expression based on the length of the interval variable.

This function returns a numerical expression that represents the value of function f evaluated on the length of interval variable a whenever the interval variable is present. When the interval variable is absent, it returns the constant numerical value absVal (zero by default).

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