Skip to content

suggestions argument in rbga function in genalg package

2 messages · Joseph Boyer, Enrico Schumann

#
I do not use this package, but a quick look at the code shows this.

if (!is.null(suggestions)) {
    # [deleted]
    suggestionCount = dim(suggestions)[1]

So 'suggestions' needs to have a dim argument (while the documentation 
speaks of an 'optional list of suggested chromosomes'). You could try

as.matrix(c(1,0.1,10, 100,1,100,1))

But I cannot tell if that solves your problem since you have not 
provided your objective function (ie, you have not provided the 
"commented, minimal, self-contained, reproducible code" that the footer 
of this message speaks about).


Regards,
Enrico

Am 22.09.2011 20:46, schrieb Joseph Boyer: