TaoGetSolutionStatus

Get the current iterate, objective value, residual, infeasibility, and termination

Synopsis

#include "tao_solver.h"  
int TaoGetSolutionStatus(TAO_SOLVER tao, int* iterate, double* f, double* gnorm, double *cnorm, double *xdiff, TaoTerminateReason *reason)

Input Parameters

tao -the TAO_SOLVER context

Output Parameters

iterate - the current iterate number (>=0)
f - the current function value
gnorm - the square of the gradient norm, duality gap, or other measure indicating distince from optimality.
cnorm - the infeasibility of the current solution with regard to the constraints.
xdiff - the step length or trust region radius of the most recent iterate.
reason - The termination reason, which can equal TAO_CONTINUE_ITERATING

Note

TAO returns the values set by the solvers in the routine TaoMonitor().

Note

If any of the output arguments are set to TAO_NULL, no value will be returned.

See Also

TaoMonitor(), TaoGetTerminationReason()

Keywords

convergence, monitor

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

Examples

src/bound/examples/tutorials/plate2.c.html
src/unconstrained/examples/tutorials/eptorsion1.c.html
src/unconstrained/examples/tutorials/eptorsion2.c.html
src/unconstrained/examples/tutorials/minsurf2.c.html
src/unconstrained/examples/tutorials/eptorsion2f.F.html
src/petsctao/gridapplication/examples/eptorsion3.c.html
src/petsctao/gridapplication/examples/jbearing3.c.html
src/petsctao/gridapplication/examples/minsurf3.c.html
src/petsctao/gridapplication/examples/combustion3.c.html