Procedure GMP::Row::GetRightHandSideRaw(GMP, rowSet, rhs)


The procedure GMP::Row::GetRightHandSideRaw retrieves a collection of right-hand-side values corresponding to a given set of row numbers in the generated mathematical program.

     GMP,            ! (input)  a generated mathematical program
     rowSet,         ! (input)  a subset of Integers
     rhs             ! (output) a real-valued parameter



An element in AllGeneratedMathematicalPrograms.


A subset of the set Integers, representing a set of row numbers. Each row number should be in the range \(\{ 0 .. m-1 \}\) where \(m\) is the number of rows in the matrix.


A real-valued parameter over rowSet indicating the right hand side values of each row in rowSet.

Return Value

The procedure returns 1 on success, or 0 otherwise.


  • If a row has a unit then the scaled right-hand-side value is retrieved (without unit).

  • This procedure is much more efficient than calling the function GMP::Row::GetRightHandSide to get the right hand side of each row in rowSet individually.

See also

The routine GMP::Row::GetRightHandSide.