# TaoResetStatistics
Initialize the statistics used by Tao for all of the solvers. These statistics include the iteration number, residual norms, and convergence status. This routine gets called before solving each optimization problem. 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoResetStatistics(Tao tao)
```
Collective


## Input Parameters

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





## See Also
 `Tao`, `TaoCreate()`, `TaoSolve()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/interface/taosolver.c.html#TaoResetStatistics">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)  
