Procedure GMP::Row::SetConvex(GMP, row, value)

GMP::Row::SetConvex

The procedure GMP::Row::SetConvex can be used to indicate that a row in a generated mathematical program is convex. Some solvers (like BARON) can make use of this information.

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

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.

value

A scalar reference to a 0-1 value.

Return Value

The procedure returns 1 on success, and 0 otherwise.

Note

AIMMS cannot detect whether a row is convex or not. A row is marked as being convex after this procedure is called with the value argument equal to 1 or if the Convex suffix has been set to 1 for the corresponding constraint.

See also

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