TaoIsObjectiveAndGradientDefined
Checks to see if the user has declared a joint objective/gradient routine. Useful for determining when it is appropriate to call TaoComputeObjective() or TaoComputeObjectiveAndGradient()
Synopsis
#include "taosolver.h"
PetscErrorCode TaoIsObjectiveAndGradientDefined(TaoSolver tao, PetscBool *flg)
Not Collective
Input Parameter
| tao | - the TaoSolver context
|
| ctx | - PETSC_TRUE if objective/gradient routine is set by user, PETSC_FALSE otherwise
|
See Also
TaoSetObjectiveAndGradientRoutine(), TaoIsObjectiveDefined(), TaoIsGradientDefined()
Level:developer
Location:src/interface/taosolver_fg.c
TAO Solver Index
Table of Contents