TaoSetMaximumIterations#

Sets a maximum number of iterates to be used in TaoSolve()

Synopsis#

#include "petsctao.h" 
PetscErrorCode TaoSetMaximumIterations(Tao tao, PetscInt maxits)

Logically Collective

Input Parameters#

  • tao - the Tao solver context

  • maxits - the maximum number of iterates (>=0)

Options Database Key#

  • -tao_max_it - sets the maximum number of iterations

See Also#

TAO: Optimization Solvers, Tao, TaoSetTolerances(), TaoSetMaximumFunctionEvaluations()

Level#

intermediate

Location#

src/tao/interface/taosolver.c

Examples#

src/tao/unconstrained/tutorials/rosenbrock2.c
src/tao/unconstrained/tutorials/rosenbrock3.c


Edit on GitLab

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