TaoTestHessian#
Compare the user-supplied Hessian with a finite-difference approximation, when requested via the options database, and print the difference.
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoTestHessian(Tao tao)
Collective
Input Parameter#
tao - the
Taocontext
Options Database Keys#
-tao_test_hessian threshold - enable the comparison, optionally overriding the reporting threshold (default
1e-5)-tao_test_hessian_view - display the user-supplied Hessian, the finite-difference Hessian, and their difference
Note#
If -tao_test_hessian is not set, this routine returns immediately without performing any work.
See Also#
TAO: Optimization Solvers, Tao, TaoTestGradient(), TaoComputeHessian()
Level#
intermediate
Location#
src/tao/interface/taosolver_hj.c
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages