GA icon indicating copy to clipboard operation
GA copied to clipboard

GA Version 3.2 for Linux: gaIslands.R line 127

Open kk-1 opened this issue 3 years ago • 1 comments

Hello, I am trying to use 8 islands with the gaisl. It is not clear if we need to replicate the initial soln row according to the number of islands Maybe 8 islands need 8 rows?

I created a "suggestion" (initial solution) with the right number of columns (upper and lower interval) and 8 rows (per each island?) Rstudio gives error:

Error in suggestions[seq(popSize), , drop = FALSE] : subscript out of bounds

Why the line 127 in gIslands.R is like the following: suggestions <- suggestions[seq(popSize),,drop=FALSE]

Maybe there is a bug? How can we use the suggestion for let say n islands?

Thanks in advance...

kk-1 avatar Mar 08 '21 15:03 kk-1

You should provide a minimal reproducible example.

luca-scr avatar Mar 08 '21 16:03 luca-scr