tao-2.1-p0 2012-07-24

TaoSetConstraintsRoutine

Sets a function to be used to compute constraints. TAO only handles constraints under certain conditions, see manual for details

Synopsis

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

Input Parameters

tao - the TaoSolver context
c - A vector that will be used to store constraint evaluation
func - the bounds computation routine
ctx - [optional] user-defined context for private data for the constraints computation (may be PETSC_NULL)

Calling sequence of func

     func (TaoSolver tao, Vec x, Vec c, void *ctx);

tao - the TaoSolver
x - point to evaluate constraints
c - vector constraints evaluated at x
ctx - the (optional) user-defined function context

See Also

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

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

Examples

src/complementarity/examples/tutorials/minsurf1.c.html
src/complementarity/examples/tutorials/blackscholes.c.html
src/pde_constrained/examples/tutorials/elliptic.c.html
src/pde_constrained/examples/tutorials/parabolic.c.html
src/pde_constrained/examples/tutorials/hyperbolic.c.html