# TaoGAAppSetMonitor

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

## Synopsis

    #include "taoapp_ga.h"
    int TaoGAAppSetMonitor(TAO_GA_APPLICATION gaapp, int (*mymonitor)(TAO_GA_APPLICATION, void*), void *mctx)

Collective on TAO_GA_APPLICATION

## Input Parameters

| gaapp | - the TAO_GA_APPLICATION application context
| mymonitor | - monitoring routine
| mctx | - [optional] user-defined context for private data for the monitor routine (may be TAO_NULL)

## Calling sequence of mymonitor

        int mymonitor(TAO_DA_APPLICATION gaapp, void *mctx)

| gaapp | - the TAO_GA_APPLICATION application context
| mctx | - [optional] monitoring context

## Notes

Several different monitoring routines may be set by calling TaoGAAppSetMonitor() mutiple times; all will be called in the order in which they were set.

## Keywords

GAApplication, monitor, View

## See Also

TaoGAAppMonitor()

Level:intermediate
Location:src/external/globalarraytao/taoapp_ga.c
TAO Solver Index
Table of Contents