tao-2.1-p0 2012-07-24

TaoGetSolutionStatus

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

Synopsis

#include "taosolver.h" 
PetscErrorCode TaoGetSolutionStatus(TaoSolver tao, PetscInt *its, PetscReal *f, PetscReal *gnorm, PetscReal *cnorm, PetscReal *xdiff, TaoSolverTerminationReason *reason)
Not Collective

Input Parameters

tao -the TaoSolver 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 distance 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 PETSC_NULL, no corresponding value will be returned.

See Also

TaoMonitor(), TaoGetTerminationReason()

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
src/leastsquares/examples/tutorials/chwirut2.c.html