PGAGetPopReplaceType8
Returns the symbolic constant used to determine which strings to copy from the old population to the new population.
Usage
int PGAGetPopReplaceType(ctx)
PGAContext *ctx
Input parameters
- ctx
-
- context variable
Output parameters
- none
Location
pop.c
Examples
Example:
PGAContext *ctx;
int popreplace;
:
popreplace = PGAGetPopReplaceType(ctx);
switch (popreplace) {
case PGA_POPREPL_BEST:
printf("Replacement Strategy = PGA_POPREPL_BEST0);
break;
case PGA_POPREPL_RANDOM_REP:
printf("Replacement Strategy = PGA_POPREPL_RANDOM_REP0);
break;
case PGA_POPREPL_RANDOM_NOREP:
printf("Replacement Strategy = PGA_POPREPL_RANDOM_NOREP0);
break;
}
Releases
Unchanged in 4 releases since Debian 5.0 (Lenny).