Function GMP::Solution::GetFirstOrderDerivative(GMP, solution, row, column)


The function GMP::Solution::GetFirstOrderDerivative returns the first order derivative for a column in a row in a solution in the solution repository of a generated mathematical program.

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



An element in AllGeneratedMathematicalPrograms.


An integer scalar reference to a solution.


A scalar reference to an existing 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.


A scalar reference to an existing column in the matrix or the number of that column in the range \(\{ 0 .. n-1 \}\) where \(n\) is the number of columns in the matrix.

Return Value

The first order derivative of the column in the row.


If this function is called for multiple rows and columns, then AIMMS will calculate the first order derivatives more efficiently if this function is called row wise instead of column wise. That is, it is better to call this function for all columns in a certain row before calling it for the next row.

See also

The routines GMP::Instance::Generate.