# TaoLineSearchUseTaoRoutines
Informs the TaoLineSearch to use the objective and gradient evaluation routines from the given Tao object. 
## Synopsis
```
#include "petsctaolinesearch.h" 
PetscErrorCode TaoLineSearchUseTaoRoutines(TaoLineSearch ls, Tao ts)
```
Logically Collective


## Input Parameters

- ***ls -*** the TaoLineSearch context
- ***ts -*** the Tao context with defined objective/gradient evaluation routines





## See Also
 `TaoLineSearchCreate()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/linesearch/interface/taolinesearch.c.html#TaoLineSearchUseTaoRoutines">src/tao/linesearch/interface/taolinesearch.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/linesearch/interface/taolinesearch.c)


[Index of all TaoLineSearch routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
