Skip to contents

Summary method for class "hms".

Usage

# S4 method for hms
summary(object, ...)

Arguments

object
  • hms s4 object

...
  • other summary arguments

Value

Returns a list with fields: fitness, solution, metaepochs, deme_population_sizes, lower_bound, upper_bound, computation_time. These fields should match fields of class "hms".

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.985419 
#> Metaepoch: 1 Best fitness: 4.999938 
#> Metaepoch: 2 Best fitness: 4.999938 
#> Metaepoch: 3 Best fitness: 4.999938 
#> Metaepoch: 4 Best fitness: 4.999938 
#> Metaepoch: 5 Best fitness: 4.999938 
#> Metaepoch: 6 Best fitness: 4.999938 
#> Metaepoch: 7 Best fitness: 4.999938 
#> Metaepoch: 8 Best fitness: 4.999938 
#> Metaepoch: 9 Best fitness: 4.999938 
summary(result)
#> $fitness
#> [1] 4.999938
#> 
#> $solution
#> [1] "5.00"
#> 
#> $metaepochs
#> [1] 10
#> 
#> $deme_population_sizes
#> [1] 60 30 15
#> 
#> $lower_bound
#> [1] "-5.00"
#> 
#> $upper_bound
#> [1] "5.00"
#> 
#> $computation_time
#> [1] "0.234203338623047 seconds"
#> 
#> attr(,"class")
#> [1] "summary.hms"