A Little Example of Genetic Algorithm (GA) in Action
Posted by Syeilendra Pramuditya on August 4, 2008
You can read a brief explanation about GA here
The objective of this code is to solve a simple mathematical equation below, that is to find x1 and x2 :
You can press the START button on the code again and again, then you will always get different values of x1 and x2, but the correct solution are x1=1 and x2=0.5.
Download : here
The complete explanation about this code will (hopefully) be available soon 🙂
Keywords : genetic algorithm soft computing delphi
Note that the sorting algorithm employed in this code is not really correct, you can replace it by some typical sorting algorithms, for instance the Bubble Sort algorithm. I know how to do this, just don’t have time right now.