SNESGetMinimizationFunction

Returns the scalar function value for unconstrained minimization problems.

Synopsis

#include "petscsnes.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
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages