Man Page: pgasetmutationorcrossoverflag
Operating Environment: debian
Section: 8
PGASetMutationOrCrossoverFlag(8) PGAPack PGASetMutationOrCrossoverFlag(8)NAMEPGASetMutationOrCrossoverFlag - A boolean flag to indicate if recombination uses exactly one of crossover or mutation on selected strings.INPUT PARAMETERSctx - context variable flag - PGA_TRUE (default) or PGA_FALSEOUTPUT PARAMETERSnoneSYNOPSIS#include "pgapack.h" void PGASetMutationOrCrossoverFlag(ctx, flag) PGAContext *ctx int flagLOCATIONpga.cEXAMPLEExample: Set the genetic algorithm to use mutation only when crossover is not used. PGAContext *ctx; : PGASetMutationOrCrossoverFlag(ctx,PGA_FALSE); 05/01/95 PGASetMutationOrCrossoverFlag(8)