PGAGetMutationOrCrossoverFlag(8)

PGAGetMutationOrCrossoverFlag8

Returns true if mutation only occurs when crossover does not.

Usage

int PGAGetMutationOrCrossoverFlag(ctx)

PGAContext *ctx

Input parameters

ctx

- context variable

Output parameters

none

Location

pga.c

Examples

Example:
PGAContext *ctx;
int mutatetype;
:
mutatetype = PGAGetMutationOrCrossoverFlag(ctx);
switch (mutatetype) {
case PGA_TRUE:
printf("Only mutating strings not undergoing crossover0);
break;
case PGA_FALSE:
printf("Mutating strings only after crossover0);
break;
}

Releases

Unchanged in 4 releases since Debian 5.0 (Lenny).

  1. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.