monprogress: Monitor Fitness Value Progress

View source: R/monprogress.R

monprogressR Documentation

Monitor Fitness Value Progress

Description

Monprogress function performs by creating a line plot of the best fitness value found across generations.

Usage

monprogress(g, genfits, objective, ...)

Arguments

g

Generation number

genfits

A matrix for fitness values

objective

Type of optimization. "min" or "max"

...

Further arguments passed to or from other methods.

Value

No return value, called for the side effect of drawing a plot.

Author(s)

Zeynel Cebeci & Erkut Tekeli

See Also

show

Examples

n = 100
genfits = matrix(NA, nrow=n, ncol=5)
genfits[1,3] = 50
objective = "max"
for(i in 1:(n-1)){
  g=i
  monprogress(g=g, genfits=genfits, objective=objective)
  genfits[g+1, 3] = genfits[g, 3] + runif(1, -2, 5)
}

adana documentation built on March 18, 2022, 6:03 p.m.

Related to monprogress in adana...