PetscErrorCode SNESSetObjective(SNES snes,PetscErrorCode (*SNESObjectiveFunction)(SNES,Vec,PetscReal*,void*),void *ctx)Logically Collective on SNES
snes | - the SNES context | |
SNESObjectiveFunction | - objective evaluation routine | |
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())
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