TaoIsObjectiveAndGradientDefined#
Checks to see if the user has declared a joint objective/gradient routine. Useful for determining when it is appropriate to call TaoComputeObjectiveAndGradient()
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoIsObjectiveAndGradientDefined(Tao tao, PetscBool *flg)
Not Collective
Input Parameter#
tao - the
Taocontext
Output Parameter#
flg -
PETSC_TRUEif the objectiveTaoTermhas this routinePETSC_FALSEotherwise
Note#
If the objective of Tao has been altered via TaoAddTerm(), it will
return whether the summation of all terms has this routine.
See Also#
TAO: Optimization Solvers, TaoSetObjectiveAndGradient(), TaoIsObjectiveDefined(), TaoIsGradientDefined()
Level#
developer
Location#
src/tao/interface/taosolver_fg.c
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages