.TH PGASetMutationOrCrossoverFlag 8 "05/01/95" " " "PGAPack" .SH NAME PGASetMutationOrCrossoverFlag \- A boolean flag to indicate if recombination uses exactly one of crossover or mutation on selected strings. .SH INPUT PARAMETERS .PD 0 .TP ctx - context variable .PD 0 .TP flag - PGA_TRUE (default) or PGA_FALSE .PD 1 .SH OUTPUT PARAMETERS .PD 0 .TP none .PD 1 .SH SYNOPSIS .nf #include "pgapack.h" void PGASetMutationOrCrossoverFlag(ctx, flag) PGAContext *ctx int flag .fi .SH LOCATION pga.c .SH EXAMPLE .nf Example: Set the genetic algorithm to use mutation only when crossover is not used. PGAContext *ctx; : PGASetMutationOrCrossoverFlag(ctx,PGA_FALSE); .fi