:orphan:
# TaoGetCurrentFunctionEvaluations
Get current number of function evaluations used by a `Tao` object 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoGetCurrentFunctionEvaluations(Tao tao, PetscInt *nfuncs)
```
Not Collective


## Input Parameter

- ***tao -*** the `Tao` solver context



## Output Parameter

- ***nfuncs -*** the current number of function evaluations (maximum between gradient and function evaluations)





## See Also
 [](ch_tao), `Tao`, `TaoSetMaximumFunctionEvaluations()`, `TaoGetMaximumFunctionEvaluations()`, `TaoGetMaximumIterations()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/interface/taosolver.c.html#TaoGetCurrentFunctionEvaluations">src/tao/interface/taosolver.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/interface/taosolver.c)


[Index of all Tao routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
