petsc-3.13.6 2020-09-29
Report Typos and Errors

TaoShellSetSolve

Sets routine to apply as solver

Synopsis

#include "petsctao.h" 
PetscErrorCode TaoShellSetSolve(Tao tao, PetscErrorCode (*solve) (Tao))
Logically Collective on Tao

Input Parameters

tao - the nonlinear solver context
solve - the Section 1.5 Writing Application Codes with PETSc-provided solver routine

Calling sequence of solve

   PetscErrorCode solve (Tao tao)

tao -the optimizer, get the Section 1.5 Writing Application Codes with PETSc context with TaoShellGetContext()

Notes

the function MUST return an error code of 0 on success and nonzero on failure.

See Also

TAOSHELL, TaoShellSetContext(), TaoShellGetContext()

Level

advanced

Location

src/tao/unconstrained/impls/cg/taoshell.c

Examples

src/tao/constrained/tutorials/tomographyADMM.c.html

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