man PGAGetMutationAndCrossoverFlag (Fonctions bibliothèques) - Returns true if mutation occurs only when crossover does.
NAME
PGAGetMutationAndCrossoverFlag - Returns true if mutation occurs only when crossover does.
INPUT PARAMETERS
- ctx
- - context variable
OUTPUT PARAMETERS
- crossed
- -over strings. Otherwise, returns PGA_FALSE
SYNOPSIS
#include "pgapack.h" int PGAGetMutationAndCrossoverFlag(ctx) PGAContext *ctx
LOCATION
pga.c
EXAMPLE
PGAContext *ctx;
int mutatetype;
:
mutatetype = PGAGetMutationAndCrossoverFlag(ctx);
switch (mutatetype) {
case PGA_TRUE:
printf("Mutating strings only after crossovern");
break;
case PGA_FALSE:
printf("Only mutating strings not undergoing crossovern");
break;
}