tao-2.1-p0 2012-07-24

TaoDefaultComputeHessianColor

Computes the Hessian using colored finite differences.

Synopsis

#include "taosolver.h"  
PetscErrorCode TaoDefaultComputeHessianColor(TaoSolver tao, Vec V, Mat *H,Mat *B,MatStructure *flag,void *ctx)
Collective on TaoSolver

Input Parameters

tao - the TaoSolver context
V - compute Hessian at this point
ctx - the PetscColoring object (must be of type MatFDColoring)

Output Parameters

H - Hessian matrix (not altered in this routine)
B - newly computed Hessian matrix to use with preconditioner (generally the same as H)
flag - flag indicating whether the matrix sparsity structure has changed

See Also

TaoSetHessianRoutine(), TaoDefaultComputeHessian(),SNESDefaultComputeJacobianColor(), TaoSetGradientRoutine()

Level:advanced
Location:src/interface/fdiff.c
TAO Solver Index
Table of Contents

Examples

src/unconstrained/examples/tutorials/minsurf2.c.html