tao-2.1-p0 2012-07-24

TaoSetTerminationReason

Sets the termination flag on a TaoSolver object

Synopsis

#include "taosolver.h" 
PetscErrorCode TaoSetTerminationReason(TaoSolver tao, TaoSolverTerminationReason reason)
Logically Collective on TaoSolver

Input Parameters

tao - the TaoSolver context
reason - one of
    TAO_CONVERGED_ATOL (2),
    TAO_CONVERGED_RTOL (3),
    TAO_CONVERGED_STEPTOL (4),
    TAO_CONVERGED_MINF (5),
    TAO_CONVERGED_USER (6),
    TAO_DIVERGED_MAXITS (-2),
    TAO_DIVERGED_NAN (-4),
    TAO_DIVERGED_MAXFCN (-5),
    TAO_DIVERGED_LS_FAILURE (-6),
    TAO_DIVERGED_TR_REDUCTION (-7),
    TAO_DIVERGED_USER (-8),
    TAO_CONTINUE_ITERATING (0)

Level:intermediate
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