TaoSetJacobianEqualityRoutine#
Sets the function to compute the Jacobian (and its inverse) of the constraint function with respect to the equality variables. Used only for PDE-constrained optimization.
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoSetJacobianEqualityRoutine(Tao tao, Mat J, Mat Jpre, PetscErrorCode (*func)(Tao, Vec, Mat, Mat, void *), void *ctx)
Logically Collective
Input Parameters#
tao - the
Tao
contextJ - Matrix used for the Jacobian
Jpre - Matrix that will be used to construct the preconditioner, can be same as
J
.func - Jacobian evaluation routine
ctx - [optional] user-defined context for private data for the Jacobian evaluation routine (may be
NULL
)
Calling sequence of func
#
PetscErrorCode func(Tao tao, Vec x, Mat J, Mat Jpre, void *ctx)
tao - the
Tao
contextx - input vector
J - Jacobian matrix
Jpre - matrix used to construct the preconditioner, usually the same as
J
ctx - [optional] user-defined Jacobian context
See Also#
TAO: Optimization Solvers, Tao
, TaoComputeJacobianEquality()
, TaoSetJacobianDesignRoutine()
, TaoSetEqualityDesignIS()
Level#
intermediate
Location#
Examples#
src/tao/constrained/tutorials/ex1.c
src/tao/constrained/tutorials/maros.c
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages