# TaoALMMSetMultipliers
Set user-defined Lagrange multipliers. The vector type and parallel structure of the given vectormust match equality and inequality constraints. The vector must have a local size equal to the sum of the local sizes for the constraint vectors, and a global size equal to the sum of the global sizes of the constraint vectors. 
## Synopsis
```
#include "petsctao.h" 
#include "petscvec.h" 
PetscErrorCode TaoALMMSetMultipliers(Tao tao, Vec Y)
```

## Input Parameters

- ***tao -*** the `Tao` context for the `TAOALMM` solver
- ***Y -*** vector of Lagrange multipliers





## Notes
This routine is only useful if the user wants to change the
parallel distribution of the combined dual vector in problems that
feature both equality and inequality constraints. For other tasks,
it is strongly recommended that the user retrieve the dual vector
created by the solver using TaoALMMGetMultipliers().


## See Also
 `TAOALMM`, `Tao`, `TaoALMMGetMultipliers()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/constrained/impls/almm/almmutils.c.html#TaoALMMSetMultipliers">src/tao/constrained/impls/almm/almmutils.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/constrained/impls/almm/almmutils.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)  
