:orphan: # TaoLineSearchSetUp Sets up the internal data structures for the later use of a `TaoLineSearch` ## Synopsis ``` #include "petsctaolinesearch.h" PetscErrorCode TaoLineSearchSetUp(TaoLineSearch ls) ``` Collective ## Input Parameter - ***ls -*** the `TaoLineSearch` context ## Note The user will not need to explicitly call `TaoLineSearchSetUp()`, as it will automatically be called in `TaoLineSearchSolve()`. However, if the user desires to call it explicitly, it should come after `TaoLineSearchCreate()` but before `TaoLineSearchApply()`. ## See Also [](ch_tao), `Tao`, `TaoLineSearch`, `TaoLineSearchCreate()`, `TaoLineSearchApply()` ## Level developer ## Location src/tao/linesearch/interface/taolinesearch.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)