TaoSetConstraintTolerances#
Sets constraint tolerance parameters used in TaoSolve() convergence tests
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoSetConstraintTolerances(Tao tao, PetscReal catol, PetscReal crtol)
Logically Collective
Input Parameters#
tao - the
Taocontextcatol - absolute constraint tolerance, constraint norm must be less than
catolfor used forgatolconvergence criteriacrtol - relative constraint tolerance, constraint norm must be less than
crtolfor used forgatol,gttolconvergence criteria
Options Database Keys#
-tao_catol
- Sets catol-tao_crtol
- Sets crtol
Notes#
Use PETSC_CURRENT to leave one or tolerance unchanged.
Use PETSC_DETERMINE to set one or more tolerances to their values when the tao object’s type was set
Fortran Note#
Use PETSC_CURRENT_REAL or PETSC_DETERMINE_REAL
See Also#
TAO: Optimization Solvers, Tao, TaoConvergedReason, TaoGetTolerances(), TaoGetConstraintTolerances(), TaoSetTolerances()
Level#
intermediate
Location#
Examples#
src/tao/constrained/tutorials/ex1.c
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages