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

Context for PETSc TAO, i.e. optimization solver. More...

Go to the source code of this file.

Classes

struct  MoFEM::TaoCtx
 Interface for TAO solvers. More...
 

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.
 

Detailed Description

Context for PETSc TAO, i.e. optimization solver.

Author
Anonymous author(s) committing under MIT license

Definition in file TaoCtx.hpp.