# TaoGetLineSearch
Gets the line search used by the optimization solver. Application writers should use `TaoGetLineSearch()` if they need direct access to the TaoLineSearch object. 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoGetLineSearch(Tao tao, TaoLineSearch *ls)
```
Not Collective


## Input Parameters

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



## Output Parameters

- ***ls -*** the line search used in the optimization solver





## Level
intermediate

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