# TaoAppSetVariableBoundsRoutine

Sets a routine that evaluates the function at the specified point.

## Synopsis

    #include "tao.h"
    int TaoAppSetVariableBoundsRoutine(TAO_APPLICATION taoapp, int (*func)(TAO_APPLICATION,Vec,Vec,void*),void *ctx)

Collective on TAO_APPLICATION

## Input Parameters

| taoapp | - the TAO_APPLICATION context
| func | - bound evaluation routine
| ctx | - [optional] user-defined context for private data for the bounds evaluation routine (may be TAO_NULL)

## Calling sequence of func

        func (Vec xl,Vec xu, void *ctx);

| tao | - the TAO_APPLICATION context
| xl | - lower bound vector
| xu | - upper bound vector
| ctx | - [optional] user-defined function context

## See Also

TaoGetVariableBoundVecs()

## Keywords

TAO_APPLICATION, set, bounds

Level:beginner
Location:src/petsctao/application/petscapp/tao_app_j.c
TAO Solver Index
Table of Contents

### Examples

src/bound/examples/tutorials/plate2.c.html
src/bound/examples/tutorials/jbearing2.c.html
src/complementarity/examples/tutorials/blackscholes.c.html