:orphan: # TaoGetLineSearch Gets the line search used by the optimization solver. ## Synopsis ``` #include "petsctao.h" PetscErrorCode TaoGetLineSearch(Tao tao, TaoLineSearch *ls) ``` Not Collective ## Input Parameter - ***tao -*** the `Tao` solver ## Output Parameter - ***ls -*** the line search used in the optimization solver ## See Also [](ch_tao), `Tao`, `TaoLineSearch`, `TaoLineSearchType` ## Level intermediate ## Location src/tao/interface/taosolver.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)