carta
PGASetCrossoverProb(3)

PGASetCrossoverProb3

Probability that a selected string will undergo crossover.

Usage

void PGASetCrossoverProb(ctx, crossover_prob)

PGAContext *ctx

double crossover_prob

Overview

The default is 0.85.

Input parameters

ctx

- context variable

p

- the crossover probability

Output parameters

none

Location

cross.c

Examples

Example:
Make crossover happen infrequently.
PGAContext *ctx;
:
PGASetCrossoverProb(ctx,0.001);

History

  • Debian 8 (Jessie) to Debian 5.0 (Lenny): the text shown here
  • Debian 3.1 (Sarge) to Debian 1.1 (Buzz)

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