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

GMP::Row::Delete

The procedure GMP::Row::Delete marks a row in a generated mathematical program as deleted.

GMP::Row::Delete(
     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, or 0 otherwise.

Note

  • Use GMP::Row::DeleteMulti or GMP::Row::DeleteMulti if many rows have to be deleted, because that will be more efficient.

  • A deleted row remains present in the generated mathematical program but its content will not be copied to a solver session.

  • The row will not be printed in the constraint listing, nor be visible in the Math Program Inspector and it will be removed from any solver maintained copies.