Gets all interval sequence variables in the current model.

Namespace: ILOG.CP
Assembly: oplall (in oplall.dll)

Syntax

C#
public virtual IIntervalSequenceVar[] GetAllIIntervalSequenceVars()

Remarks

This method returns an array of all interval sequence variables extracted by the invoking CP Optimizer engine. If the current model was not extracted or if it was changed since last extraction, this method will (re)extract it.

The main use case for this method is for accessing interval sequence variables in the case when the model was read from a file using ImportModel(String).

The variables returned by this method can be used, for example, to query solution values using functions such as GetFirst(IIntervalSequenceVar), GetLast(IIntervalSequenceVar), GetNext(IIntervalSequenceVar, IIntervalVar), GetPrev(IIntervalSequenceVar, IIntervalVar).

See Also