petsc-3.7.1 2016-05-15
Report Typos and Errors

TaoSetMonitor

Sets an ADDITIONAL function that is to be used at every iteration of the solver to display the iteration's progress.

Synopsis

#include "petsctao.h" 
PetscErrorCode TaoSetMonitor(Tao tao, PetscErrorCode (*func)(Tao, void*), void *ctx,PetscErrorCode (*dest)(void**))
Logically Collective on Tao Many br

Input Parameters

tao - the Tao solver context Many br
mymonitor - monitoring routine Many br
mctx - [optional] user-defined context for private data for the Many brmonitor routine (may be NULL) Many br

Calling sequence of mymonitor

    int mymonitor(Tao tao,void *mctx)

tao - the Tao solver context Many br
mctx - [optional] monitoring context Many br

Options Database Keys

-tao_monitor - sets TaoDefaultMonitor() Many br
-tao_smonitor - sets short monitor Many br
-tao_cmonitor - same as smonitor plus constraint norm Many br
-tao_view_solution - view solution at each iteration Many br
-tao_view_gradient - view gradient at each iteration Many br
-tao_view_separableobjective - view separable objective function at each iteration Many br
-tao_cancelmonitors - cancels all monitors that have been hardwired into a code by calls to TaoSetMonitor(), but does not cancel those set via the options database. Many br

Notes

Several different monitoring routines may be set by calling Many brTaoSetMonitor() multiple times; all will be called in the Many brorder in which they were set. Many br

Fortran Notes: Only one monitor function may be set Many br

Many br

See Also

TaoDefaultMonitor(), TaoCancelMonitors(), TaoSetDestroyRoutine()

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

Examples

src/tao/unconstrained/examples/tutorials/minsurf2.c.html
src/tao/unconstrained/examples/tutorials/eptorsion2f.F.html
src/tao/bound/examples/tutorials/jbearing2.c.html
src/tao/leastsquares/examples/tutorials/chwirut2.c.html