|
Using the GA ExampleNow that you have an example to play with, I encourage you to experiment with its settings. So let's discuss what you are seeing, when you run the GeneticAlgorithms applet. The Graph ViewThe upper left panel obviously the graph view. The dependent variable is the individual fitness and the independent variable is the generation number. The green line is the fittest individual line. The blue line is the average fitness line. You should see that the blue line moves gradually up to meet the green line. The green line quickly settles into a fairly high value. This movement of blue line shows the expected trend of the average fitness to increase. ![]() The Fittest Individual ViewThe lower left panel shows a graphical depiction of the fittest individual. The graphical rendering of BooleanIndividuals is a series of red and green boxes. Red is false; green is true. If you implement your own Individual without overloading the graphical functions of Renderable. You will see the toString value of your Individual. ![]() The ButtonsThe buttons on the right do what their buttons indicate. The start/stop button does just that. The Configure button pops up the GenerationsGeneratorDialog. The reset button resets the executor object (Resets the Genetic Algorithm). ![]() Status FieldsThe fields on the lower right depict, the values of certain status variables. They are
![]() ExperimentExperiment with these variables. See what happens if you set a high mutation rate. See what happens with small and large populations, and anything else you feel like trying. If you really feel adventurous try some of these suggestions for building an Individual implementation.
|