PGASetMutationAndCrossoverFlag(3)

PGASetMutationAndCrossoverFlag3

A boolean flag to indicate if recombination uses both crossover and mutation on selected strings

Part of PGASetMutationAndCrossoverFlag(8).

Usage

void PGASetMutationAndCrossoverFlag(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 both crossover and mutation when
reproducing strings.
PGAContext *ctx;
:
PGASetMutationAndCrossoverFlag(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.