A boolean flag to indicate if recombination uses both crossover and mutation on selected strings
ctx
- context variable
flag
- PGA_TRUE (default) or PGA_FALSE
none
#include "pgapack.h" void PGASetMutationAndCrossoverFlag(ctx, flag) PGAContext *ctx int flag
pga.c
Example: Set the genetic algorithm to use both crossover and mutation when reproducing strings. PGAContext *ctx; : PGASetMutationAndCrossoverFlag(ctx,PGA_FALSE);