#include "petsctao.h" PetscErrorCode TaoGetSolutionStatus(Tao tao, PetscInt *its, PetscReal *f, PetscReal *gnorm, PetscReal *cnorm, PetscReal *xdiff, TaoConvergedReason *reason)Not Collective
tao | - the Tao context |
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 |