SNESConverged_UM_TR

Monitors the convergence of the SNESSolve_UM_TR() routine (default).

Synopsis

int SNESConverged_UM_TR(SNES snes,double xnorm,double gnorm,double f,void *dummy)
Collective on SNES

Input Parameters

snes - the SNES context
xnorm - 2-norm of current iterate
gnorm - 2-norm of current gradient
f - objective function value
dummy - unused dummy context

Returns

where

1 if ( f < fmin ),- . 2 if ( abs(ared) <= rtol*abs(f) && pred <= rtol*abs(f) ),
3 if ( delta <= deltatol*xnorm ),- . -1 if ( nfuncs > maxfunc ),
-2 if ( abs(ared) <= epsmch && pred <= epsmch ),- - 0 otherwise.
ared - actual reduction
delta - trust region paramenter
deltatol - trust region size tolerance, set with SNESSetTrustRegionTolerance()
epsmch - machine epsilon
fmin - lower bound on function value, set with SNESSetMinimizationFunctionTolerance()
nfunc - number of function evaluations
maxfunc - maximum number of function evaluations, set with SNESSetTolerances()
pred - predicted reduction
rtol - relative function tolerance, set with SNESSetTolerances()

Location: src/snes/impls/umtr/umtr.c
SNES Index
Table of Contents