# TaoLineSearchMonitor
Monitor the line search steps. This routine will otuput the iteration number, step length, and function value before calling the implementation specific monitor. 
## Synopsis
```
#include "petsctaolinesearch.h" 
PetscErrorCode TaoLineSearchMonitor(TaoLineSearch ls, PetscInt its, PetscReal f, PetscReal step)
```

## Input Parameters

- ***ls -*** the TaoLineSearch context
- ***its -*** the current iterate number (>=0)
- ***f -*** the current objective function value
- ***step -*** the step length



## Options Database Key

- ***-tao_ls_monitor -*** Use the default monitor, which prints statistics to standard output





## Level
developer

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/linesearch/impls/morethuente/morethuente.c.html#TaoLineSearchMonitor_MT">TaoLineSearchMonitor_MT in src/tao/linesearch/impls/morethuente/morethuente.c</A><BR>


---
[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)  
