# TaoGetRecycleHistory
Retrieve the boolean flag for re-using iterate information from the previous `TaoSolve()`. This feature is disabled by default. 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoGetRecycleHistory(Tao tao, PetscBool *recycle)
```
Logically collective on tao


## Input Parameters

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



## Output Parameters

- ***recycle -*** boolean flag





## See Also
 `TaoSetRecycleHistory()`, `TAOBNCG`, `TAOBQNLS`, `TAOBQNKLS`, `TAOBQNKTR`, `TAOBQNKTL`


## Level
intermediate

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/unconstrained/tutorials/rosenbrock3.c.html">src/tao/unconstrained/tutorials/rosenbrock3.c.html</A><BR>


---
[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)  
