36. Monitors

By default the TAO solvers run silently without displaying information about the iterations. The user can initiate monitoring with the command
   int TaoSetMonitor(TAO_SOLVER solver, 
                     int (*mon)(TAO_SOLVER tao,void* mctx), 
                     void *mctx); 

The routine, mon indicates a user-defined monitoring routine and mctx denotes an optional user-defined context for private data for the monitor routine.

The routine set by TaoAppSetMonitor() is called once during each iteration of the optimization solver. Hence, the user can employ this routine for any application-specific computations that should be done after the solution update. .

   TaoAppSetMonitor(TAO_APPLICATION,  
                    int (*)(TAO_APPLICATION,void*),void *);