Function GMP::Column::GetStatus(GMP, column)


The function GMP::Column::GetStatus returns the status of a column in a generated mathematical program.

     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

An element in the predefined set AllRowColumnStatuses. The set AllRowColumnStatuses contains the following elements:

  • Active,

  • Deactivated,

  • Deleted,

  • NotGenerated,

  • PresolveDeleted.


  • This function will return ‘PresolveDeleted‘ only if the generated mathematical program has been created with GMP::Instance::CreatePresolved. Status ‘PresolveDeleted‘ means that the column was generated for the original generated mathematical program but deleted when the presolved mathematical program was created.

  • Status ‘Deactivated‘ is not possible for columns.