:orphan: # TaoGetMaximumIterations Gets a maximum number of iterates that will be used ## Synopsis ``` #include "petsctao.h" PetscErrorCode TaoGetMaximumIterations(Tao tao, PetscInt *maxits) ``` Not Collective ## Input Parameter - ***tao -*** the `Tao` solver context ## Output Parameter - ***maxits -*** the maximum number of iterates ## See Also [](ch_tao), `Tao`, `TaoSetMaximumIterations()`, `TaoGetMaximumFunctionEvaluations()` ## 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)