TaoMonitor

Monitor the solver and the current solution. This routine will calls the records the iteration number and residual statistics, monitors specified by the user, and calls the termaination routine.

Synopsis

#include "tao_solver.h"  
int TaoMonitor(TAO_SOLVER tao, int iterate, double f, double fnorm, double cnorm, double step, TaoTerminateReason *reason)

Input Parameters

tao - the TAO_SOLVER context
f - the current objective function value
iterate - the current iterate number (>=0)
fnorm - the gradient norm, square root of the duality gap, or other measure indicating distince from optimality. This measure will be recorded and used for some termination tests.
cnorm - the infeasibility of the current solution with regard to the constraints.
step - multiple of the step direction added to the previous iterate.

Output Parameters

reason -The termination reason, which can equal TAO_CONTINUE_ITERATING

Options Database Key

-tao_monitor -The default monitor, which prints statistics to standard output is used.

See Also

TaoGetTerminationReason(),TaoGetSolutionStatus()

Keywords

Monitor, convergence

Level:developer
Location:src/interface/tao.c
TAO Solver Index
Table of Contents