Skip to contents

printBlockedSprouts method for "hms" class.

Usage

# S4 method for hms
printBlockedSprouts(object)

Arguments

object
  • hms s4 object

Value

It doesn't return anything. It prints blocked sprouts per metaepoch.

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.96201 
#> Metaepoch: 1 Best fitness: 4.993293 
#> Metaepoch: 2 Best fitness: 4.997188 
#> Metaepoch: 3 Best fitness: 4.997188 
#> Metaepoch: 4 Best fitness: 4.997188 
#> Metaepoch: 5 Best fitness: 4.997188 
#> Metaepoch: 6 Best fitness: 4.997188 
#> Metaepoch: 7 Best fitness: 4.997188 
#> Metaepoch: 8 Best fitness: 4.997188 
#> Metaepoch: 9 Best fitness: 4.99936 
printBlockedSprouts(result)
#> Metaepoch 1 - blocked sprouts count: 0
#> 
#> Metaepoch 2 - blocked sprouts count: 1
#>      x1 
#> 4.96201 
#> 
#> Metaepoch 3 - blocked sprouts count: 1
#>       x1 
#> 4.993293 
#> 
#> Metaepoch 4 - blocked sprouts count: 2
#>      x1 
#> 4.96201 
#>       x1 
#> 4.993293 
#> 
#> Metaepoch 5 - blocked sprouts count: 2
#>       x1 
#> 4.991758 
#>       x1 
#> 4.993293 
#> 
#> Metaepoch 6 - blocked sprouts count: 3
#>      x1 
#> 4.96201 
#>      x1 
#> 4.96201 
#>       x1 
#> 4.991758 
#> 
#> Metaepoch 7 - blocked sprouts count: 3
#>      x1 
#> 4.96201 
#>       x1 
#> 4.991758 
#>       x1 
#> 4.993293 
#> 
#> Metaepoch 8 - blocked sprouts count: 4
#>       x1 
#> 4.977298 
#>       x1 
#> 4.994919 
#>      x1 
#> 4.96201 
#>       x1 
#> 4.991758 
#> 
#> Metaepoch 9 - blocked sprouts count: 3
#>       x1 
#> 4.994919 
#>      x1 
#> 4.96201 
#>       x1 
#> 4.991758 
#> 
#> Metaepoch 10 - blocked sprouts count: 3
#>       x1 
#> 4.977298 
#>       x1 
#> 4.994919 
#>      x1 
#> 4.96201 
#>