petsc-3.7.1 2016-05-15
Report Typos and Errors

TaoSetTolerances

Sets parameters used in TAO convergence tests

Synopsis

#include "petsctao.h" 
PetscErrorCode TaoSetTolerances(Tao tao, PetscReal gatol, PetscReal grtol, PetscReal gttol)
Logically collective on Tao Many br

Input Parameters

tao - the Tao context Many br
gatol - stop if norm of gradient is less than this Many br
grtol - stop if relative norm of gradient is less than this Many br
gttol - stop if norm of gradient is reduced by this factor Many br

Options Database Keys

-tao_gatol <gatol> - Sets gatol Many br
-tao_grtol <grtol> - Sets grtol Many br
-tao_gttol <gttol> - Sets gttol Many br

Stopping Criteria

||g(X)||                            <= gatol
||g(X)|| / |f(X)|                   <= grtol
||g(X)|| / ||g(X0)||                <= gttol

Notes

Use PETSC_DEFAULT to leave one or more tolerances unchanged. Many br

Many br

See Also

TaoGetTolerances()

Level:beginner
Location:
src/tao/interface/taosolver.c
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ts/examples/tutorials/ex16opt_p.c.html
src/ts/examples/tutorials/ex16opt_ic.c.html
src/ts/examples/tutorials/ex20opt_p.c.html
src/ts/examples/tutorials/ex20opt_ic.c.html
src/tao/constrained/examples/tutorials/maros.c.html
src/tao/constrained/examples/tutorials/toy.c.html
src/tao/constrained/examples/tutorials/toyf.F.html