# TaoComputeConstraints
Compute the variable bounds using the routine set by `TaoSetConstraintsRoutine()`. 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoComputeConstraints(Tao tao, Vec X, Vec C)
```
Collective


## Input Parameters

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





## See Also
 `Tao`, `TaoSetConstraintsRoutine()`, `TaoComputeJacobian()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/interface/taosolver_bounds.c.html#TaoComputeConstraints">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)  
