show {adana}R Documentation

Function to visualize iteration results

Description

The show function provides access to user-defined visualization functions.

Usage

show(monitorfunc, g, genfits, objective, x, ...)

Arguments

monitorfunc

Monitoring function

g

Generation number

genfits

A matrix for fitness values

objective

Type of optimization. "min" or "max"

x

...

...

Further arguments passed to or from other methods.

Value

NA

Author(s)

Zeynel Cebeci & Erkut Tekeli

See Also

monprogress

Examples

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

[Package adana version 1.1.0 Index]