:orphan: # TaoGetMaximumFunctionEvaluations Gets a maximum number of function evaluations allowed for a `TaoSolve()` ## Synopsis ``` #include "petsctao.h" PetscErrorCode TaoGetMaximumFunctionEvaluations(Tao tao, PetscInt *nfcn) ``` Logically Collective ## Input Parameter - ***tao -*** the `Tao` solver context ## Output Parameter - ***nfcn -*** the maximum number of function evaluations ## See Also [](ch_tao), `Tao`, `TaoSetMaximumFunctionEvaluations()`, `TaoGetMaximumIterations()` ## Level intermediate ## Location src/tao/interface/taosolver.c --- [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)