# TaoAppSetColoring

Set the matrix coloring to be used when computing the Hessian by finite differences.

## Synopsis

    #include "tao.h"
    int TaoAppSetColoring(TAO_APPLICATION taoapp, ISColoring coloring)

Collective on TAO_APPLICATION

## Input Parameters

| app | - the TAO_APPLICATION context
| coloring | - the coloring to be used

## Note

The gradient evaluation must be set using the routine TaoSetPetscGradient().

.keywords: TAO_APPLICATION, finite differences, Hessian, coloring, sparse

## See Also

TaoAppSetHessianRoutine(), TaoAppDefaultComputeHessianColor(),
TaoAppSetGradientRoutine()

Level:intermediate
Location:src/petsctao/application/petscapp/fdiff.c
TAO Solver Index
Table of Contents

### Examples

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