PGARunMutationAndCrossover − Performs crossover and mutation from one population to create the next.
Assumes PGASelect has been called.
ctx |
- context variable |
|||
oldpop |
- symbolic constant of old population |
|||
newpop |
- symbolic constant of new population |
side |
-effect. |
#include "pgapack.h"
void PGARunMutationAndCrossover(ctx, oldpop, newpop)
PGAContext *ctx
int oldpop
int newpop
pga.c
PGAContext *ctx,
:
PGARunMutationAndCrossover(ctx, PGA_OLDPOP, PGA_NEWPOP);