Procedure GMP::Row::Deactivate(GMP, row)

GMP::Row::Deactivate

The procedure GMP::Row::Deactivate deactivates a row in a generated mathematical program. A deactivated row will not be passed to a solver session.

GMP::Row::Deactivate(
     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 procedure returns 1 on success, and 0 otherwise.

Note

Use GMP::Row::DeactivateMulti or GMP::Row::DeactivateRaw if many rows have to be deactivated, because that will be more efficient.