Skip to main content
FRAMES NO FRAMES

IloLengthOfNext

public IloIntExprArg IloLengthOfNext(const IloIntervalSequenceVar seq, const IloIntervalVar a, IloInt lastVal)
Definition file: ilconcert/ilosmodel.h
Returns an integer expression that represents the length of the interval variable that is next.

This function returns an integer expression that represents the length of the interval variable that is next to interval a in sequence variable seq. When interval a is present and is the last interval of sequence seq, it returns the constant integer value lastVal. When interval a is absent, it returns 0.

For more information on interval variable sequencing, see the concept Interval variable sequencing in CP Optimizer.


IloLengthOfNext

public IloIntExprArg IloLengthOfNext(const IloIntervalSequenceVar seq, const IloIntervalVar a, IloInt lastVal, IloInt absVal)
Definition file: ilconcert/ilosmodel.h
Returns an integer expression that represents the length of the interval variable that is next.

This function returns an integer expression that represents the length of the interval variable that is next to interval a in sequence variable seq. When interval a is present and is the last interval of sequence seq, it returns the constant integer value lastVal. When interval a is absent, it returns the constant integer value absVal.

For more information on interval variable sequencing, see the concept Interval variable sequencing in CP Optimizer.