Returns an enumerator suitable for the invoking model.

Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0

Syntax

C#
public virtual IEnumerator GetEnumerator()
Visual Basic
Public Overridable Function GetEnumerator As IEnumerator

Implements

IModel..::..GetEnumerator()()()()

Remarks

This enumerator traverses only those objects explicitly added to the model. Range objects implement the interface NumVar because indicator variables can be associated with a constraint. Consequently, this enumerator treats a range object added to a model as an instance of a range and an instance of a numeric variable.

See Also