luca-scr / GA

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

Does type "binary" feed the fitness function with gray encoded individuals? #34

Closed Paul-AntoineLeboeuf closed 4 years ago

Paul-AntoineLeboeuf commented 5 years ago

Hi, nice package by the way.

Why in your Binary search solution of your A quick tour of GA document, you have to used the function gray2binary on the "x" argument before moving on (as I understand it, this argument represents the individuals). It looks like the GA function gives gray encoding individuals to the fitness function when the GA "binary" type is used instead of just binary encoded individuals. Thanks

luca-scr commented 5 years ago

The use of Gray encoding in binary search is explained in the JSS paper.