Function PGARunMutationAndCrossover
Defined in File pga.c
Function Documentation
-
void PGARunMutationAndCrossover(PGAContext *ctx, int oldpop, int newpop)
Perform crossover and mutation from one population to create the next.
Description
Assumes
PGASelect()
has been called.Example
PGAContext *ctx; ... PGARunMutationAndCrossover (ctx, PGA_OLDPOP, PGA_NEWPOP);
- Parameters:
ctx – context variable
oldpop – symbolic constant of old population
newpop – symbolic constant of new population
- Returns:
newpop is modified by side-effect