:orphan: # TaoLineSearchSetVariableBounds Sets the upper and lower bounds for a bounded line search ## Synopsis ``` #include "petsctaolinesearch.h" PetscErrorCode TaoLineSearchSetVariableBounds(TaoLineSearch ls, Vec xl, Vec xu) ``` Logically Collective ## Input Parameters - ***ls -*** the `TaoLineSearch` context - ***xl -*** vector of lower bounds - ***xu -*** vector of upper bounds ## Note If the variable bounds are not set with this routine, then `PETSC_NINFINITY` and `PETSC_INFINITY` are assumed ## See Also [](ch_tao), `Tao`, `TaoLineSearch`, `TaoSetVariableBounds()`, `TaoLineSearchCreate()` ## Level beginner ## Location src/tao/linesearch/interface/taolinesearch.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/linesearch/interface/taolinesearch.c) [Index of all TaoLineSearch routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)