PGASetMutationOrCrossoverFlag(8)

PGASetMutationOrCrossoverFlag8

A boolean flag to indicate if recombination uses exactly one of crossover or mutation on selected strings.

Usage

void PGASetMutationOrCrossoverFlag(ctx, flag)

PGAContext *ctx

int flag

Input parameters

ctx

- context variable

flag

- PGA_TRUE (default) or PGA_FALSE

Output parameters

none

Location

pga.c

Examples

Example:
Set the genetic algorithm to use mutation only when crossover is
not used.
PGAContext *ctx;
:
PGASetMutationOrCrossoverFlag(ctx,PGA_FALSE);

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.