This contains a compression class so that genotypes can be compressed before being sent over the network. You have to base your own class on it and use it in your own code. You use it like this:
- Do a example run of your code using PGAL. This is to fill the database with example genotypes that it can examine.
- Write an newline delimited ASCII file of all the bits of string that you think will appear a few times in the genotype. For example, I use XML and tags such as "<neural-net name=" might be good for me. Say the name of the file is 'tags.txt'.
- Build the files within this directory and type the command:
buildClass {evolutionaryRunNo} {name of class} < tags.txt
...where {evolutionaryRunNo} is the run no of the typical run done above and {name of class} is the name you want your class to be. 4) Use the header and source code file produced as the compressor
class in PGAL. e.g. at some point, put:
MyCompressorClass myCompressorClass; evolutionaryRun.setCompressor( &myCompressorClass );
