SNESGetMinimizationFunction

Returns the scalar function value for unconstrained minimization problems.

Synopsis

#include "snes.h"  
int SNESGetMinimizationFunction(SNES snes,PetscReal *r,void **ctx)
Not Collective

Input Parameter

snes -the SNES context

Output Parameter

r - the function (or PETSC_NULL)
ctx - the function context (or PETSC_NULL)

Notes

SNESGetMinimizationFunction() is valid for SNES_UNCONSTRAINED_MINIMIZATION methods only. An analogous routine for SNES_NONLINEAR_EQUATIONS methods is SNESGetFunction().

Keywords

SNES, nonlinear, get, function

See Also

SNESGetGradient(), SNESGetSolution(), SNESGetFunction(), SNESSetFunction()

Level:advanced
Location:src/snes/interface/snes.c
SNES Index
Table of Contents