- #1
Superposed_Cat
- 388
- 5
Hi all, I'm busy writing my first genetic algorithm. A simple one that finds an expression to give a desired number, ie you'll give it the number 40 and it will give you 5*7+5. I have the fitness function, the parser that uses the string to compute the number and the crossover system, so only the final step remains, but I'm confused, say I have the 6 chromosomes with a fitness assigned to each, what do I do from there? I can't just breed the best two and remove the others?
Do I select the best 2 then breed them but change how they crossover each time?
Any help appreciated, apologies for newbieness.
Do I select the best 2 then breed them but change how they crossover each time?
Any help appreciated, apologies for newbieness.