tao-2.1-p0 2012-07-24

TaoIsGradientDefined

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

Synopsis

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

Input Parameter

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

See Also

TaoSetGradientRoutine(), TaoIsObjectiveDefined(), TaoIsObjectiveAndGradientDefined()

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