show | R Documentation |
The show function provides access to user-defined visualization functions.
show(monitorfunc, g, genfits, objective, x, ...)
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. |
NA
Zeynel Cebeci & Erkut Tekeli
monprogress
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) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.