# TaoSetTolerances

Sets convergence parameters. TAO tries to satisfy an absolute stopping criteria or a relative stopping criteria.

## Synopsis

    #include "tao_solver.h"
    int TaoSetTolerances(TAO_SOLVER tao,double fatol,double frtol,double catol,double crtol)

Collective on TAO_SOLVER

## Input Parameters

| tao | - the TAO_SOLVER solver context
| fatol | - absolute convergence tolerance
| frtol | - relative convergence tolerance
| catol | - allowable error in constraints
| crtol | - allowable relative error in constraints

## Options Database Keys

| -tao_fatol <fatol> | - Sets fatol
| -tao_frtol <frtol> | - Sets frtol
| -tao_catol <catol> | - Sets catol
| -tao_crtol <crtol> | - Sets crtol

## Absolute Stopping Criteria

     f <= f + fatol

     B1 - catol <= B(X) <= B2 + catol

## Relative stopping criteria

     f <= f + frtol*|f|

     B1 - catol <= B(X) <= B2 + catol

## Keywords

options, convergence

## See Also

TaoSetMaximumIterates(),TaoSetTrustRegionTolerance(), TaoSetGradientTolerances
TaoSetMaximumFunctionEvaluations()

Level:beginner
Location:src/interface/tao.c
TAO Solver 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