tao-2.1-p0 2012-07-24

TaoSetVariableBoundsRoutine

Sets a function to be used to compute variable bounds

Synopsis

#include "taosolver.h" 
PetscErrorCode TaoSetVariableBoundsRoutine(TaoSolver tao, PetscErrorCode (*func)(TaoSolver, Vec, Vec, void*), void *ctx)
Logically collective on TaoSolver

Input Parameters

tao - the TaoSolver context
func - the bounds computation routine
ctx - [optional] user-defined context for private data for the bounds computation (may be PETSC_NULL)

Calling sequence of func

     func (TaoSolver tao, Vec xl, Vec xu);

tao - the TaoSolver
xl - vector of lower bounds
xu - vector of upper bounds
ctx - the (optional) user-defined function context

See Also

TaoSetObjectiveRoutine(), TaoSetHessianRoutine() TaoSetObjectiveAndGradientRoutine(), TaoSetVariableBounds()

Note: The func passed in to TaoSetVariableBoundsRoutine() takes precedence over any values set in TaoSetVariableBounds().

Level:beginner
Location:src/interface/taosolver_bounds.c
TAO Solver Index
Table of Contents

Examples

src/bound/examples/tutorials/plate2f.F.html
src/complementarity/examples/tutorials/blackscholes.c.html