Procedure GMP::Column::Delete(GMP, column)

GMP::Column::Delete

The procedure GMP::Column::Delete marks a column in the matrix of a generated mathematical program as deleted.

GMP::Column::Delete(
     GMP,            ! (input) a generated mathematical program
     column          ! (input) a scalar reference or column number
     )

Arguments

GMP

An element in AllGeneratedMathematicalPrograms.

column

A scalar reference to an existing column in the matrix or the number of that column in the range \(\{ 0 .. n-1 \}\) where \(n\) is the number of columns in the matrix.

Return Value

The procedure returns 1 on success, or 0 otherwise.

Note

  • Use GMP::Column::DeleteMulti if many columns corresponding to some variable have to be deleted, because that will be more efficient.

  • The column 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.

  • Use GMP::Column::Add to undo this action.