#include "petsctao.h" PetscErrorCode TaoSetHistory(Tao tao, PetscReal *obj, PetscReal *resid, PetscReal *cnorm, PetscInt na,PetscBool reset)Logically Collective on Tao
tao | - the Tao solver context | |
obj | - array to hold objective value history | |
resid | - array to hold residual history | |
cnorm | - array to hold constraint violation history | |
na | - size of obj, resid, and cnorm | |
reset | - PetscTrue indicates each new minimization resets the history counter to zero, else it continues storing new values for new minimizations after the old ones |
This routine is useful, e.g., when running a code for purposes of accurate performance monitoring, when no I/O should be done during the section of code that is being timed.
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