#include "tao.h" int TaoAppSetConstraintRoutine(TAO_APPLICATION taoapp, int (*func)(TAO_APPLICATION,Vec,Vec,void*),void *ctx)Collective on TAO_APPLICATION
taoapp | - the TAO_APPLICATION context | |
func | - the constraint function evaluation routine | |
ctx | - [optional] user-defined function context |
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() |
Level:intermediate
Location:src/petsctao/application/petscapp/tao_app_j.c
TAO Solver Index
Table of Contents