Function GMP::Row::GetStatus(GMP, row)


The function GMP::Row::GetStatus returns the status of a row in the matrix of a generated mathematical program.

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



An element in AllGeneratedMathematicalPrograms.


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

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 row was generated for the original generated mathematical program but deleted when the presolved mathematical program was created.