printTree method for 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.86903
#> Metaepoch: 1 Best fitness: 4.998861
#> Metaepoch: 2 Best fitness: 4.999579
#> Metaepoch: 3 Best fitness: 4.999579
#> Metaepoch: 4 Best fitness: 4.999579
#> Metaepoch: 5 Best fitness: 4.999579
#> Metaepoch: 6 Best fitness: 4.999579
#> Metaepoch: 7 Best fitness: 4.999579
#> Metaepoch: 8 Best fitness: 4.999579
#> Metaepoch: 9 Best fitness: 4.999579
printTree(result)
#> f(4.92) = 4.92 evaluations: 2556 A
#> ├-- spr: (4.87); f(5.00) = 5.00 evaluations: 898
#> | ├-- spr: (5.00); ***f(5.00) = 5.00*** evaluations: 445
#> | └-- spr: (5.00); f(5.00) = 5.00 evaluations: 307 A
#> ├-- spr: (4.92); f(4.99) = 4.99 evaluations: 271 A
#> ├-- spr: (4.92); f(4.98) = 4.98 evaluations: 635 A
#> └-- spr: (4.87); f(4.99) = 4.99 evaluations: 896 A
#> └-- spr: (4.98); f(4.99) = 4.99 evaluations: 355 A