Function GMP::Row::GetIndicatorColumn(GMP, row)

GMP::Row::GetIndicatorColumn

The function GMP::Row::GetIndicatorColumn returns, for a row in a generated mathematical program, the column number of the indicator column.

GMP::Row::GetIndicatorColumn(
     GMP,            ! (input) a generated mathematical program
     row             ! (input) a scalar reference or row number
     )

Arguments

GMP

An element in AllGeneratedMathematicalPrograms.

row

A scalar reference to an existing row in the matrix or an element in the set Integers in the range \(\{ 0 .. m-1 \}\) where \(m\) is the number of rows in the matrix.

Return Value

The function returns the column number if the indicator column exists, and -1 otherwise.