ILOG CPLEX .NET Reference Manual

ILPMatrix.GetIndex Method (INumVar)

Returns the column index corresponding to a variable in the invoking LP matrix.

int GetIndex(
   INumVar var
);

Parameters

var
The variable whose column index is queried.

Return Value

The column index of the variable var.

Remarks

If the variable is not linked to any column of the invoking LP matrix, -1 is returned.

See Also

ILPMatrix Interface | ILOG.Concert Namespace | ILPMatrix.GetIndex Overload List