:orphan:
# TaoGetDualVariables
Gets the dual vectors
## Synopsis
```
#include "petsctao.h"
PetscErrorCode TaoGetDualVariables(Tao tao, Vec *DE, Vec *DI)
```
Collective
## Input Parameter
- ***tao -*** the `Tao` context
## Output Parameters
- ***DE -*** dual variable vector for the lower bounds
- ***DI -*** dual variable vector for the upper bounds
## See Also
[](ch_tao), `Tao`, `TaoComputeDualVariables()`
## Level
advanced
## Location
src/tao/interface/taosolver_bounds.c
## Examples
src/tao/constrained/tutorials/ex1.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/interface/taosolver_bounds.c)
[Index of all Tao routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)