title: Why is my genetic algorithm not converging?
body: <p>I'm attempting to write a program to find optimal combinational circuits with n inputs and n outputs using a genetic algorithm. The code works but doesn't find the best solution. The algorithm just takes a "good" solution and tries to randomly modify it to get a better one. My question is, Is my approach wrong (shouldn't do so random) or is my code logically wrong?</p>
  
  <p>Git Repository: <a href="https://github.com/Umuril/Genetic-Circuits" rel="nofollow">https://github.com/Umuril/Genetic-Circuits</a></p>
  
  <p>PS: I just need a look on the code. The code is "commented" and to run just need to: <code>cd "dir"; make; ./Genetic.out</code> </p>