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

GMP::Row::GetConvex

The function GMP::Row::GetConvex returns 1 for a row in a generated mathematical program if it has been marked as being convex; otherwise it returns 0.

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

Arguments

GMP

An element in AllGeneratedMathematicalPrograms.

row

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

The function returns 1 if the row is convex, and 0 otherwise.

Note

AIMMS cannot detect whether a row is convex or not. A row is marked as being convex if the procedure GMP::Row::SetConvex has been called before or if the Convex suffix has been set to 1 for the corresponding constraint.

See also

The procedure GMP::Row::SetConvex. The Convex suffix is explained in full detail in Constraint Suffices for Global Optimization of the Language Reference.