tao-2.1-p0 2012-07-24

TaoIsObjectiveDefined

Checks to see if the user has declared an objective-only routine. Useful for determining when it is appropriate to call TaoComputeObjective() or TaoComputeObjectiveAndGradient()

Synopsis

#include "taosolver.h" 
PetscErrorCode TaoIsObjectiveDefined(TaoSolver tao, PetscBool *flg)
Collective on TaoSolver

Input Parameter

tao - the TaoSolver context
ctx - PETSC_TRUE if objective function routine is set by user, PETSC_FALSE otherwise

See Also

TaoSetObjectiveRoutine(), TaoIsGradientDefined(), TaoIsObjectiveAndGradientDefined()

Level:developer
Location:src/interface/taosolver_fg.c
TAO Solver Index
Table of Contents