TaoGAAppSetHessianRoutine

Sets the function to compute the Hessian as well as the location to store the matrix.

Synopsis

#include "taoapp_ga.h" 
int TaoGAAppSetHessianRoutine(TAO_GA_APPLICATION gaapp, int (*hess)(TAO_GA_APPLICATION, GAVec, GAMat,void*),void *ctx)
Collective on TAO_GA_APPLICATION and Mat

Input Parameters

gaapp - the TAO_GA_APPLICATION context
hess - Hessian evaluation routine
ctx - [optional] user-defined context for private data for the Hessian evaluation routine (may be TAO_NULL)

Calling sequence of hess

   hess (TAO_GA_APPLICATION gaapp,GAVec x,GAMat H,void *ctx);

gaapp - the TAO_GA_APPLICATION application context
x - input vector
H - Hessian matrix
ctx - [optional] user-defined Hessian context

Options Database Keys

-tao_view_hessian -view the hessian after each evaluation

Keywords

GAApplication, Hessian

See Also

TaoGAAppSetObjectiveRoutine(), TaoGAAppSetGradientRoutine()

Level:beginner
Location:src/external/globalarraytao/taoapp_ga.c
TAO Solver Index
Table of Contents