Skip to main content
Ctrl+K
PETSc 3.25.0 documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • TaoTerm

TaoTerm#

Abstract PETSc object that manages individual terms whose sum forms the objective function of optimization solvers.

Synopsis#

typedef struct _p_TaoTerm *TaoTerm;

Note#

User can combine a user-defined TaoTerm using TaoTermCreateShell() and built-in TaoTerm to define the objective function.

See Also#

TAO: Optimization Solvers, TaoTerm: composable objective function terms, TaoTermCreate(), TaoTermSetType(), TaoTermSetFromOptions(), TaoTermView(), TaoTermComputeObjective(), TaoTermComputeGradient(), TaoTermComputeObjectiveAndGradient(), TaoTermComputeHessian(), TaoTermDestroy(), TaoTermCreateShell(), Tao, TaoAddTerm()

Level#

beginner

Location#

include/petsctaoterm.h

Examples#

src/tao/term/tutorials/ex1.c
src/tao/unconstrained/tutorials/elastic_net_regularization.c
src/tao/unconstrained/tutorials/rosenbrock1_taoterm.c

Implementations#

_p_TaoTerm in include/petsc/private/taoimpl.h


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

On this page
  • Synopsis
  • Note
  • See Also
  • Level
  • Location
  • Examples
  • Implementations
Edit on GitLab
Show Source

© Copyright 1991-2026, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2026-03-31T00:41:07-0500 (v3.24.6-717-g319083dccc8).