TaoComputeObjective

Computes the objective function value at a given point

Synopsis

#include "petsctao.h" 
PetscErrorCode TaoComputeObjective(Tao tao, Vec X, PetscReal *f)
Collective on Tao

Input Parameters

tao - the Tao context
X - input vector

Output Parameter

f - Objective value at X

Notes

TaoComputeObjective() is typically used within minimization implementations, so most users would not generally call this routine themselves.

Level: advanced

See Also

TaoComputeGradient(), TaoComputeObjectiveAndGradient(), TaoSetObjectiveRoutine()

Location:taosolver_fg.c