Logging

Logging is the output mechanism for the GIalgorithm. It provides 4 different types of logging which can be used in any combination:

  1. phylo(Generation pop, char outFolder[], int metric, int run_number, char run_name[], int performanceTests, opt char outFile[]) - This logs the information for the phylogenetics of all individuals including ancestry, mutations and crossovers applied, fitness score, generation, fitness metric, run name.

  2. codeBest(Generation pop, char outFolder[]) - This saves out the code of the best individual in the population in the current generation.

  3. codeAll(Generation pop, char outFolder[]) - This saves out the code of all the individuals in the population in the current generation. DISCLAIMER: This functionality uses a lot of storage space.

  4. ranking(Generation pop, opt int histlength) - This does not save out but does add a ranking value to individuals in the generation. This was added to allow for differential rank based mutation and crossover parameters.