petsc-dev 2014-07-30
Report Typos and Errors

SNESSetObjective

Sets the objective function minimized by the SNES methods.

Synopsis

PetscErrorCode  SNESSetObjective(SNES snes,PetscErrorCode (*obj)(SNES,Vec,PetscReal*,void*),void *ctx)
Logically Collective on SNES

Input Parameters

snes - the SNES context
obj - objective evaluation routine; see SNESObjectiveFunction for details
ctx - [optional] user-defined context for private data for the function evaluation routine (may be NULL)

Note: If not provided then this defaults to the two norm of the function evaluation (set with SNESSetFunction())

Keywords

SNES, nonlinear, set, objective

See Also

SNESGetObjective(), SNESComputeObjective(), SNESSetFunction(), SNESSetJacobian(), SNESObjectiveFunction

Level:beginner
Location:
src/snes/interface/snesob.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages