luca-scr / GA

An R package for optimization using genetic algorithms
http://luca-scr.github.io/GA/
91 stars 29 forks source link

differences in handling suggestions between ga and gaisl #24

Closed fxdlmatt closed 5 years ago

fxdlmatt commented 5 years ago

The suggestion matrix in ga() does not have to be the same number of rows as popSize, but this is necessary for gaisl()because of the following code:

suggestions <- suggestions[seq(popSize), , drop = FALSE]

The help file for gaisl() has the same information as in ga(), which doesn't mention this constraint.

luca-scr commented 5 years ago

Fixed in the dev version available in GitHub.