# TaoBRGNSetRegularizerWeight
Set the regularizer weight for the Gauss-Newton least-squares algorithm 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoBRGNSetRegularizerWeight(Tao tao, PetscReal lambda)
```
Collective


## Input Parameters

- ***tao -*** the Tao solver context
- ***lambda -*** L1-norm regularizer weight




## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/leastsquares/impls/brgn/brgn.c.html#TaoBRGNSetRegularizerWeight">src/tao/leastsquares/impls/brgn/brgn.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/leastsquares/impls/brgn/brgn.c)


[Index of all Tao routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
