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

TaoSetConvergenceTest

Sets the function that is to be used to test for convergence o fthe iterative minimization solution. The new convergence testing routine will replace TAO's default convergence test.

Synopsis

#include "petsctao.h" 
PetscErrorCode TaoSetConvergenceTest(Tao tao, PetscErrorCode (*conv)(Tao,void*), void *ctx)
Logically Collective on Tao Many br

Input Parameters

tao - the Tao object Many br
conv - the routine to test for convergence Many br
ctx - [optional] context for private data for the convergence routine Many br(may be NULL) Many br

Calling sequence of conv

  PetscErrorCode conv(Tao tao, void *ctx)

tao - the Tao object Many br
ctx - [optional] convergence context Many br

Note: The new convergence testing routine should call TaoSetConvergedReason(). Many br

Many br

See Also

TaoSetConvergedReason(), TaoGetSolutionStatus(), TaoGetTolerances(), TaoSetMonitor

Level:advanced
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/tao/unconstrained/examples/tutorials/eptorsion2f.F.html
src/tao/bound/examples/tutorials/jbearing2.c.html