PGASetMutationOrCrossoverFlag(3)

PGASetMutationOrCrossoverFlag3

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

Part of PGASetMutationOrCrossoverFlag(8).

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

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.