Function PGAComputeSimilarity
Defined in File utility.c
Function Documentation
-
int PGAComputeSimilarity(PGAContext *ctx, int popindex)
Compute the percentage of the population that have the same evaluation function.
Example
PGAContext *ctx; ... PGAComputeSimilarity (ctx, PGA_NEWPOP);
- Parameters:
ctx – context variable
popindex – symbolic constant of the population whose statistics to use
- Returns:
returns a count of the number of population members that have the same evaluation function value