# TSVISetVariableBounds
Sets the lower and upper bounds for the solution vector. xl <= x <= xu 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSVISetVariableBounds(TS ts, Vec xl, Vec xu)
```

## Input Parameters

- ***ts   -*** the `TS` context.
- ***xl   -*** lower bound.
- ***xu   -*** upper bound.





## Note
If this routine is not called then the lower and upper bounds are set to
`PETSC_NINFINITY` and `PETSC_INFINITY` respectively during `SNESSetUp()`.


## See Also
 [](chapter_ts), `TS`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/interface/ts.c.html#TSVISetVariableBounds">src/ts/interface/ts.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex21.c.html">src/ts/tutorials/ex21.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/interface/ts.c)


[Index of all TS routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
