petsc-3.4.2 2013-07-02

# SNESComputeObjective

Computes the objective.

### Synopsis

    PetscErrorCode SNESComputeObjective(SNES snes,Vec X,PetscReal *ob)

Collective on SNES

### Input Parameter

| snes | - the SNES context
| X | - the state vector

### Output Parameter

ob -the objective value

### Keywords

SNES, nonlinear, compute, objective

### See Also

SNESSetObjective(), SNESGetSolution()

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