Returns true if mutation only occurs when crossover does not.
ctx
- context variable
none
#include "pgapack.h" int PGAGetMutationOrCrossoverFlag(ctx) PGAContext *ctx
pga.c
Example:
PGAContext *ctx;
int mutatetype;
:
mutatetype = PGAGetMutationOrCrossoverFlag(ctx);
switch (mutatetype) {
case PGA_TRUE:
printf("Only mutating strings not undergoing crossover\n");
break;
case PGA_FALSE:
printf("Mutating strings only after crossover\n");
break;
}