#include "petsctao.h" PetscErrorCode TaoSetConvergenceHistory(Tao tao, PetscReal *obj, PetscReal *resid, PetscReal *cnorm, PetscInt *lits, PetscInt na,PetscBool reset)Logically Collective on Tao Many br
tao | - the Tao solver context Many br | |
obj | - array to hold objective value history Many br | |
resid | - array to hold residual history Many br | |
cnorm | - array to hold constraint violation history Many br | |
lits | - integer array holds the number of linear iterations for each Tao iteration Many br | |
na | - size of obj, resid, and cnorm Many br | |
reset | - PetscTrue indicates each new minimization resets the history counter to zero, Many brelse it continues storing new values for new minimizations after the old ones Many br |
Any convergence information after iteration number 'na' will not be stored. Many br
This routine is useful, e.g., when running a code for purposes Many brof accurate performance monitoring, when no I/O should be done Many brduring the section of code that is being timed. Many br
Many br
Level:intermediate
Location:src/tao/interface/taosolver.c
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages