gaMonitor function

Monitor genetic algorithm evolution

Monitor genetic algorithm evolution

Functions to print summary statistics of fitness values at each iteration of a GA search.

gaMonitor(object, digits = getOption("digits"), ...) gaislMonitor(object, digits = getOption("digits"), ...)

Arguments

  • object: an object of class ga-class or gaisl-class, usually resulting from a call to function ga or gaisl, respectively.
  • digits: minimal number of significant digits.
  • ...: further arguments passed to or from other methods.

Returns

These functions print a summary of current GA step on the console.

By default, gaMonitor is called in interactive sessions by ga. The old monitoring function, used as the default until version 2.2 of GA package, is provided in gaMonitor2.

By default, gaislMonitor is called in interactive sessions by gaisl.

Author(s)

Luca Scrucca

  • Maintainer: Luca Scrucca
  • License: GPL (>= 2)
  • Last published: 2024-01-28