Skip to main content
FRAMES NO FRAMES

IloEndOfPrevious

public IloIntExprArg IloEndOfPrevious(const IloIntervalSequenceVar seq, const IloIntervalVar a, IloInt firstVal)
Definition file: ilconcert/ilosmodel.h
Returns an integer expression that represents the end of the interval variable that is previous.

This function returns an integer expression that represents the end of the interval variable that is previous to interval a in sequence variable seq. When interval a is present and is the first interval of sequence seq, it returns the constant integer value firstVal. When interval a is absent, it returns 0.

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


IloEndOfPrevious

public IloIntExprArg IloEndOfPrevious(const IloIntervalSequenceVar seq, const IloIntervalVar a, IloInt firstVal, IloInt absVal)
Definition file: ilconcert/ilosmodel.h
Returns an integer expression that represents the end of the interval variable that is previous.

This function returns an integer expression that represents the end of the interval variable that is previous to interval a in sequence variable seq. When interval a is present and is the first interval of sequence seq, it returns the constant integer value firstVal. 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.