TaoLineSearchGetNumberFunctionEvaluations
Gets the number of function and gradient evaluation routines used by the line search in last application (not cumulative).
Synopsis
#include "taolinesearch.h"
PetscErrorCode TaoLineSearchGetNumberFunctionEvaluations(TaoLineSearch ls, PetscInt *nfeval, PetscInt *ngeval, PetscInt *nfgeval)
Not Collective
Input Parameter
ls -the TaoLineSearch context
Output Parameters
| nfeval | - number of function evaluations
|
| ngeval | - number of gradient evaluations
|
| nfgeval | - number of function/gradient evaluations
|
Note
If the line search is using the TaoSolver objective and gradient
routines directly (see TaoLineSearchUseTaoSolverRoutines()), then TAO
is already counting the number of evaluations.
Level:intermediate
Location:src/linesearch/interface/linesearch.c
TAO Solver Index
Table of Contents