Show method for class "hms".
Value
It returns the names of the slots and the classes associated with the slots in the "hms" class. It prints call details.
Examples
f <- function(x) x
result <- hms(fitness = f, lower = -5, upper = 5)
#> A list of standard deviations (sigma) or a function to create population should be provided.
#> Metaepoch: 0 Best fitness: 4.687449
#> Metaepoch: 1 Best fitness: 4.994995
#> Metaepoch: 2 Best fitness: 4.994995
#> Metaepoch: 3 Best fitness: 4.994995
#> Metaepoch: 4 Best fitness: 4.994995
#> Metaepoch: 5 Best fitness: 4.994995
#> Metaepoch: 6 Best fitness: 4.999854
#> Metaepoch: 7 Best fitness: 4.999854
#> Metaepoch: 8 Best fitness: 4.999854
#> Metaepoch: 9 Best fitness: 4.999854
show(result)
#> An object of class "hms"
#>
#> Call:
#> hms(fitness = f, lower = -5, upper = 5)
#>
#> Available slots:
#> [1] "root_id" "metaepoch_snapshots"
#> [3] "best_fitness" "best_solution"
#> [5] "total_time_in_seconds" "total_metaepoch_time_in_seconds"
#> [7] "metaepochs_count" "deme_population_sizes"
#> [9] "lower" "upper"
#> [11] "call"