petsc-3.7.1 2016-05-15
Report Typos and Errors

TaoSetInequalityConstraintsRoutine

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

Synopsis

#include "petsctao.h" 
PetscErrorCode TaoSetInequalityConstraintsRoutine(Tao tao, Vec ci, PetscErrorCode (*func)(Tao, Vec, Vec, void*), void *ctx)
Logically collective on Tao Many br

Input Parameters

tao - the Tao context Many br
ci - A vector that will be used to store inequality constraint evaluation Many br
func - the bounds computation routine Many br
ctx - [optional] user-defined context for private data for the inequality constraints computation (may be NULL) Many br

Calling sequence of func

     func (Tao tao, Vec x, Vec ci, void *ctx);

tao - the Tao Many br
x - point to evaluate inequality constraints Many br
ci - vector of inequality constraints evaluated at x Many br
ctx - the (optional) user-defined function context Many br

Many br

See Also

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

Level:intermediate
Location:
src/tao/interface/taosolver_bounds.c
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/tao/constrained/examples/tutorials/maros.c.html
src/tao/constrained/examples/tutorials/toy.c.html
src/tao/constrained/examples/tutorials/toyf.F.html