# TaoGetMaximumIterations
Gets a maximum number of iterates that will be used 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoGetMaximumIterations(Tao tao, PetscInt *maxits)
```
Not Collective


## Input Parameters

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



## Output Parameters

- ***maxits -*** the maximum number of iterates





## See Also
 `TaoSetMaximumIterations()`, `TaoGetMaximumFunctionEvaluations()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/interface/taosolver.c.html#TaoGetMaximumIterations">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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
