A boolean flag to indicate if recombination uses exactly one of crossover or mutation on selected strings.
ctx
- context variable
flag
- PGA_TRUE (default) or PGA_FALSE
none
#include "pgapack.h" void PGASetMutationOrCrossoverFlag(ctx, flag) PGAContext *ctx int flag
pga.c
Example: Set the genetic algorithm to use mutation only when crossover is not used. PGAContext *ctx; : PGASetMutationOrCrossoverFlag(ctx,PGA_FALSE);