C.3 Result and Initialization Interface
Before the run of the kernel is stopped or aborted i.e. child processes are terminated
and the parent process change its state to KS_STOPPED
or KS_ERROR, the results of the computation are
collected by the parent process. Results are saved into a parameter file. The name of
this file is specified by the parameter ResultFilename).
What information is included into the result parameter file is specified by
parameter ResultType. The default value means that the
whole global population and basic statistics are stored. This parameter file can
also be used to initialize the global population in a new computation of the genetic
algorithm (see parameter InitPopFromFile). In fact the format
of this result parameter file defines the interface of the kernel used either for the start
of computation from the specified point or to continue with the once stopped or aborted
The paramfile has the following format:
group [POP HEADER] contains information about the size of the results:
parameter DumpPopSize specifies the size of the global population
parameter DumpGeneParts specifies the number of different parts
in a single gene
group [GENE_<i>] contains a dump of a i-th gene of the population:
parameter Gene<i> specifies the fitness value of i-th gene
parameters Gene<i>/Part<j> specify the value of the
j-th part of i-th gene. Caption of these parameters contain the name of
the part. All values are stored as double type.
group [POP STATISTICS] contains basic statistics about the computation :
parameter BestGene specifies the index of the globally best gene
in the whole population.
parameters Child<i>/ChangesMade specify the number of
bit changes made during the run of i-th child process.
parameters Child<i>/OperationsMade specify the number
of operators executed during the run of i-th child process.
parameters Child<i>/GenerationsMade specify the number
of main loops of the genetic algorithm executed during the run of i-th child process.