# TaoGetVariableBounds
Gets the upper and lower bounds vectors set with `TaoSetVariableBounds()` 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoGetVariableBounds(Tao tao, Vec *XL, Vec *XU)
```
Not collective


## Input Parameter

- ***tao -*** the Tao context



## Output Parameters

- ***XL  -*** vector of lower bounds
- ***XU  -*** vector of upper bounds





## See Also
 `Tao`, `TaoSetObjective()`, `TaoSetHessian()`, `TaoSetObjectiveAndGradient()`, `TaoSetVariableBounds()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/interface/taosolver_bounds.c.html#TaoGetVariableBounds">src/tao/interface/taosolver_bounds.c</A>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
