Procedure GMP::Linearization::RemoveDeviation(GMP, row, linNo)


The procedure GMP::Linearization::RemoveDeviation removes the deviation of a linearization of a row in a generated mathematical program. That is, it deletes the extra column created (if any) when adding the linearization of the row to the generated mathematical program.

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



An element in AllGeneratedMathematicalPrograms.


A scalar reference to an existing nonlinear row in the matrix or the number of that row in the range \(\{ 0 .. m-1 \}\) where \(m\) is the number of rows in the matrix.


An integer scalar reference to the rows and columns of the linearization.

Return Value

The procedure returns 1 on success, or 0 otherwise.