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

GMP::Column::Delete

The procedure GMP::Column::Delete marks a column in 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 an element in the set Integers 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 or GMP::Column::DeleteRaw if many columns 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.