printTree method for class "hms".
Usage
# S4 method for hms
printTree(object)
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.985918
#> Metaepoch: 1 Best fitness: 4.985918
#> Metaepoch: 2 Best fitness: 4.999127
#> Metaepoch: 3 Best fitness: 4.999127
#> Metaepoch: 4 Best fitness: 4.999127
#> Metaepoch: 5 Best fitness: 4.999127
#> Metaepoch: 6 Best fitness: 4.999127
#> Metaepoch: 7 Best fitness: 4.999949
#> Metaepoch: 8 Best fitness: 4.999949
#> Metaepoch: 9 Best fitness: 4.999949
printTree(result)
#> f(4.99) = 4.99 evaluations: 2600 A
#> ├-- spr: (4.99); f(4.99) = 4.99 evaluations: 880
#> | ├-- spr: (4.99); f(5.00) = 5.00 evaluations: 439
#> | └-- spr: (4.99); f(4.99) = 4.99 evaluations: 242 A
#> ├-- spr: (4.99); f(5.00) = 5.00 evaluations: 125 A (new_deme)
#> ├-- spr: (4.99); f(5.00) = 5.00 evaluations: 370 A
#> | └-- spr: (5.00); ***f(5.00) = 5.00*** evaluations: 71 A (new_deme)
#> ├-- spr: (4.99); f(4.99) = 4.99 evaluations: 618 A
#> └-- spr: (4.99); f(4.99) = 4.99 evaluations: 902
#> └-- spr: (4.99); f(5.00) = 5.00 evaluations: 297 A