TaoSetInequalityConstraintsRoutine#

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 TaoSetInequalityConstraintsRoutine(Tao tao, Vec ci, PetscErrorCode (*func)(Tao tao, Vec x, Vec ci, void *ctx), void *ctx)

Logically Collective

Input Parameters#

  • tao - the Tao context

  • ci - A vector that will be used to store inequality constraint evaluation

  • func - the bounds computation routine

  • ctx - [optional] user-defined context for private data for the inequality constraints computation (may be NULL)

Calling sequence of func#

  • tao - the Tao solver

  • x - point to evaluate inequality constraints

  • ci - vector of inequality constraints evaluated at x

  • ctx - the (optional) user-defined function context

See Also#

TAO: Optimization Solvers, Tao, TaoSetObjective(), TaoSetHessian(), TaoSetObjectiveAndGradient(), TaoSetVariableBounds()

Level#

intermediate

Location#

src/tao/interface/taosolver_bounds.c

Examples#

src/tao/constrained/tutorials/maros.c
src/tao/constrained/tutorials/ex1.c


Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages