#include "petsctao.h" PetscErrorCode TaoSetVariableBoundsRoutine(Tao tao, PetscErrorCode (*func)(Tao, Vec, Vec, void*), void *ctx)Logically collective on Tao
| tao | - the Tao context | |
| func | - the bounds computation routine | |
| ctx | - [optional] user-defined context for private data for the bounds computation (may be NULL) | 
     func (Tao tao, Vec xl, Vec xu);
| tao | - the Tao | |
| xl | - vector of lower bounds | |
| xu | - vector of upper bounds | |
| ctx | - the (optional) user-defined function context | 
Note: The func passed in to TaoSetVariableBoundsRoutine() takes precedence over any values set in TaoSetVariableBounds().