next up previous
Next: jfta.demo.input Up: Sample code Previous: jfta.demo.dynam

jfta.demo.multi

This is a rather dull example of a 1-max genetic algorithm running on multiple (at least two) hosts. The more hosts are available in jfta.hosts, the more are used (illustration of jfta.actors.getHosts method). 100 hosts in as many categories as hosts exist are created, and distributed over all hosts, and a mutation actor jfta.demo.multi.Multi on each host will pick up genome tags of its own category and flips a single bit of the genome. The average fitness (number of ``1'' bits in the 32 bit genome) is displayed by a visualization actor jfta.demo.multi.MultiV. This is definitely no good algorithm for GA, as the average oscillates around 16, but this example should not point out the state of the art in GA.



Holger Veit
2001-05-14