saveMetaepochsPopulations
Usage
# S4 method for hms
saveMetaepochsPopulations(object, path, dimensions)
Examples
fitness <- function(x) x[1] + x[2]
lower <- c(-5, -5)
upper <- c(5, 5)
result <- hms(fitness = fitness, lower = lower, upper = upper)
#> A list of standard deviations (sigma) or a function to create population should be provided.
#> Metaepoch: 0 Best fitness: 8.608414
#> Metaepoch: 1 Best fitness: 9.179084
#> Metaepoch: 2 Best fitness: 9.459613
#> Metaepoch: 3 Best fitness: 9.459613
#> Metaepoch: 4 Best fitness: 9.645206
#> Metaepoch: 5 Best fitness: 9.871082
#> Metaepoch: 6 Best fitness: 9.871082
#> Metaepoch: 7 Best fitness: 9.871082
#> Metaepoch: 8 Best fitness: 9.873575
#> Metaepoch: 9 Best fitness: 9.873575
selected_dimensions <- c(1, 2)
saveMetaepochsPopulations(result, tempdir(), selected_dimensions)