TaoSetConstraintsRoutine#
Sets a function to be used to compute constraints. Tao only handles constraints under certain conditions, see TAO: Optimization Solvers for details
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoSetConstraintsRoutine(Tao tao, Vec c, PetscErrorCode (*func)(Tao tao, Vec x, Vec c, void *ctx), void *ctx)
Logically Collective
Input Parameters#
tao - the
Tao
contextc - 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
NULL
)
Calling sequence of func
#
tao - the
Tao
solverx - point to evaluate constraints
c - vector constraints evaluated at
x
ctx - the (optional) user-defined function context
See Also#
TAO: Optimization Solvers, Tao
, TaoSetObjective()
, TaoSetHessian()
, TaoSetObjectiveAndGradient()
, TaoSetVariablevBounds()
Level#
intermediate
Location#
Examples#
src/tao/pde_constrained/tutorials/hyperbolic.c
src/tao/complementarity/tutorials/minsurf1.c
src/tao/pde_constrained/tutorials/elliptic.c
src/tao/complementarity/tutorials/blackscholes.c
src/tao/pde_constrained/tutorials/parabolic.c
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages