[Push] First Actual GP Runs

Rud Merriam k5rud at arrl.net
Sun May 2 02:12:26 EDT 2010


Late Saturday night I finally got some testing done with populations. My
simple goal is to get a 5 on the integer stack. The fitness test right now
20 is points for having something on the integer stack and -10 points for
not completing. 

First observation is that generating a lot of random code finds a lot of
bugs in the Push instruction implementation. Having the unit tests I
mentioned in my last update really helps. I can create a specific test for
the bug, get a fix for the bug, and then fix all the problems in all the
other unit tests that the fix causes. Sometimes that meant fixing the
results expected from the test!

For this first run there were no genetic operators only population
selection. Even that is very simplistic. If an individual scored above zero
it stayed in the population. Any individuals who failed were replaced with
new random code. 

The population count is 20 and within 10 generations the overall fitness of
the population increased nicely. 

I realize this is nothing dramatic but I just had to share.

 
 - 73 - 
Rud Merriam K5RUD 
http://mysticlakesoftware.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.hampshire.edu/pipermail/push/attachments/20100502/58bca1eb/attachment.htm>


More information about the Push mailing list