:orphan:
# 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
- ***X -*** location to evaluate the constraints



## Output Parameter

- ***C -*** the constraints





## See Also
 [](ch_tao), `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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
