ILOG CPLEX .NET Reference Manual

Cplex.NbinVars Property

Gets the number of binary (or Boolean) variables in the matrix representation of the active model. Note that the result is not necessarily equal to the number of Boolean variables in the active model, as some mapping of modeling objects may require the introduction of added matrix columns.

public int NbinVars {get;}

See Also

Cplex Class | ILOG.CPLEX Namespace