ILOG CPLEX .NET Reference Manual

Cplex.Ncols Property

Gets 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.

public int Ncols {get;}

See Also

Cplex Class | ILOG.CPLEX Namespace