Get all integer variables in the current model.

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

Syntax

C#
public virtual IIntVar[] GetAllIIntVars()

Remarks

This method returns an array of all integer 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 integer variables in the case when the model was read from a file using ImportModel(String).

Variables returned by this method can be used, for example, to query solution values using the function GetValue(IIntVar).

See Also