title: Genetic algorithms
body: <p>I'm trying to implement a genetic algorithm that will calculate the minimum of the <a href="http://www.geatbx.com/docu/fcnindex-01.html#P140_6155" rel="nofollow noreferrer">Rastrigin functon</a> and I'm having some issues.<br>
  I need to represent the chromosome as a binary string and as the Rastrigin's function takes a list of numbers as a parameter, how can decode the chromosome to a list of numbers?<br>
  Also the Rastrigin's wants the elements in the list to be -5.12&lt;=x(i)&lt;=5.12 what happens if when i generate the chromosome it will produce number not in that interval?</p>