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