# TaoLineSearchSetInitialStepLength
Sets the initial step length of a line search.  If this value is not set then 1.0 is assumed. 
## Synopsis
```
#include "petsctaolinesearch.h" 
PetscErrorCode TaoLineSearchSetInitialStepLength(TaoLineSearch ls, PetscReal s)
```
Logically Collective


## Input Parameters

- ***ls -*** the TaoLineSearch context
- ***s -*** the initial step size





## See Also
 `TaoLineSearchGetStepLength()`, `TaoLineSearchApply()`

## Level
intermediate

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