DAAppSetHessianRoutine

Set a routine that will evaluate the hessian on the given DA at the given point.

Synopsis

#include "taodaapplication.h" 
int DAAppSetHessianRoutine(TAO_APPLICATION daapplication, int (*hess)(TAO_APPLICATION,DA,Vec,Mat,void*),void *ctx)
Collective on TAO_APPLICATION

Input Parameters

daapplication - the DA Application object
hess - the function pointer for the hessian evaluation routine
ctx - the hessian context

Calling sequence of hess

    hess(TAO_APPLICATION daapplication,DA da, Vec x,Mat H,void *ctx);

daapplication - the TAO_APPLICATION context
da - the Distributed Array
x - input vector
H - hessian matrix
ctx - user-defined hessian context set from DAAppSetHessianRoutine()

Options Database Key

-tao_view_hessian -view the hessian after each evaluation using PETSC_VIEWER_STDOUT_WORLD

Keywords

DA, hessian

See Also

DAAppSetObjectiveAndGradientRoutine();

Level:beginner
Location:src/petsctao/gridapplication/interface/daapp.c
TAO DA Application Index
Table of Contents

Examples

src/petsctao/gridapplication/examples/eptorsion3.c.html

Examples

src/petsctao/gridapplication/examples/jbearing3.c.html

Examples

src/petsctao/gridapplication/examples/minsurf3.c.html

Examples

src/petsctao/gridapplication/examples/combustion3.c.html