#include "petsctaolinesearch.h" PetscErrorCode TaoLineSearchGetSolution(TaoLineSearch ls, Vec x, PetscReal *f, Vec g, PetscReal *steplength, TaoLineSearchConvergedReason *reason)Collective on TaoLineSearch Many br
x | - the new solution Many br | |
f | - the objective function value at x Many br | |
g | - the gradient at x Many br | |
steplength | - the multiple of the step direction taken by the line search Many br | |
reason | - the reason why the line search terminated Many br |
TAOLINESEARCH_FAILED_INFORNAN | - function evaluation gives Inf or Nan value Many br | |
TAOLINESEARCH_FAILED_BADPARAMETER | - negative value set as parameter Many br | |
TAOLINESEARCH_FAILED_ASCENT | - initial line search step * g is not descent direction Many br | |
TAOLINESEARCH_HALTED_MAXFCN | - maximum number of function evaluation reached Many br | |
TAOLINESEARCH_HALTED_UPPERBOUND | - step is at upper bound Many br | |
TAOLINESEARCH_HALTED_LOWERBOUND | - step is at lower bound Many br | |
TAOLINESEARCH_HALTED_RTOL | - range of uncertainty is smaller than given tolerance Many br | |
TAOLINESEARCH_HALTED_USER | - user can set this reason to stop line search Many br | |
TAOLINESEARCH_HALTED_OTHER | - any other reason Many br |
TAOLINESEARCH_SUCCESS | - successful line search Many br |