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


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

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



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.


A scalar reference to a 0-1 value.

Return Value

The procedure returns 1 on success, and 0 otherwise.


A row is marked as being a relaxation-only row after this procedure is called with the value argument equal to 1 or if the RelaxationOnly suffix has been set to 1 for the corresponding constraint.

See also

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