v0.15.0
Loading...
Searching...
No Matches
TaoCtx.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  MoFEM
 implementation of Data Operators for Forces and Sources
 

Functions

PetscErrorCode MoFEM::TaoSetObjective (Tao tao, Vec x, PetscReal *f, void *ctx)
 Sets the objective function value for a TAO optimization context.
 
PetscErrorCode MoFEM::TaoSetGradient (Tao tao, Vec x, Vec g, void *ctx)
 Sets the gradient vector for a TAO optimization context.
 
PetscErrorCode MoFEM::TaoSetObjectiveAndGradient (Tao tao, Vec x, PetscReal *f, Vec g, void *ctx)
 Sets the objective function value and gradient for a TAO optimization solver.
 
PetscErrorCode MoFEM::TaoSetHessian (Tao tao, Vec x, Mat H, Mat Hpre, void *ctx)
 Sets the Hessian matrix for a TAO optimization context.