Returns the number of columns in the matrix representation of the active model. Note that the result may be greater than the number of variables in the active model, since some modeling objects may require more than one matrix column.

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

Syntax

C#
public virtual int GetNcols()

Return Value

The number of columns of the matrix representation of the active model.

See Also