TaoSetConvergenceTest

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

Synopsis

#include "tao_solver.h"  
int TaoSetConvergenceTest(TAO_SOLVER tao,int (*conv)(TAO_SOLVER,void*),void *cctx)
Collective on TAO_SOLVER

Input Parameters

tao - the TAO_SOLVER solver context
conv - routine to test for convergence
cctx - [optional] context for private data for the convergence routine (may be TAO_NULL)

Calling sequence of conv

    int conv (TAO_SOLVER tao, void *cctx)

tao - the TAO_SOLVER solver context
cctx - [optional] convergence context

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

Keywords

options, convergence

See Also

TaoSetTerminationReason(), TaoGetSolutionStatus(), TaoGetTolerances(), TaoGetGradientTolerances()

Level:intermediate
Location:src/interface/tao.c
TAO Solver Index
Table of Contents