Learn R Programming

cmaesr (version 1.0.3)

makeMonitor: Factory method for monitor objects.

Description

Monitors can be pluged in the main cmaes function. They have full access to the environment of the optimization routine and can be used to write/log/visualize relevant data in each iteration.

Usage

makeMonitor(before = NULL, step = NULL, after = NULL, ...)

Arguments

before
[function] Function called one time after initialization of the EA.
step
[function] Function applied after each iteration of the algorithm.
after
[function] Function applied after the EA terminated.
...
[any] Not used.

Value

[cma_monitor] Monitor object.

See Also

makeSimpleMonitor, makeVisualizingMonitor