TaoAppSetConstraintRoutine

Sets the routine that evaluates equality constraint functions.

Synopsis

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

Input Parameters

taoapp - the TAO_APPLICATION context
func - the constraint function evaluation routine
ctx - [optional] user-defined function context

Calling sequence of func

    func (TAO_APPLICATION taoapp,Vec x,Vec r,void *ctx);

taoapp - the TAO_APPLICATION context
x - input vector
r - constraint vector
ctx - user-defined function gradient context set from TaoAppSetConstraintRoutine()

Keywords

TAO_APPLICATION, set, function

See Also

TaoAppSetFunctionVec(), TaoAppSetJacobianRoutine()

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

Examples

src/complementarity/examples/tutorials/minsurf1.c.html
src/complementarity/examples/tutorials/blackscholes.c.html