tao-2.1-p0 2012-07-24

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 "taosolver.h" 
PetscErrorCode TaoSetConvergenceTest(TaoSolver tao, PetscErrorCode (*conv)(TaoSolver,void*), void *ctx)
Logically Collective on TaoSolver

Input Parameters

tao - the TaoSolver object
conv - the routine to test for convergence
ctx - [optional] context for private data for the convergence routine (may be PETSC_NULL)

Calling sequence of conv

  PetscErrorCode conv(TaoSolver tao, void *ctx)

tao - the TaoSolver object
ctx - [optional] convergence context

Note: The new convergence testing routine should call TaoSetTerminationReason().

See Also

TaoSetTerminationReason(), TaoGetSolutionStatus(), TaoGetTolerances(), TaoSetMonitor

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

Examples

src/unconstrained/examples/tutorials/eptorsion2f.F.html
src/bound/examples/tutorials/jbearing2.c.html