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


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

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



An element in AllGeneratedMathematicalPrograms.


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.


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