:orphan:
# TaoLineSearchInitializePackage
This function registers the line-search algorithms in `Tao`.  When using shared or static libraries, this function is called from the first entry to `TaoCreate()`; when using dynamic, it is called from PetscDLLibraryRegister_tao() 
## Synopsis
```
PetscErrorCode TaoLineSearchInitializePackage(void)
```



## See Also
 `Tao`, `TaoLineSearch`, `TaoLineSearchCreate()`

## Level
developer

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/linesearch/interface/dlregis_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)  
