PGASetCrossoverProb(3)

PGASetCrossoverProb3

Probability that a selected string will undergo crossover.

Usage

#include "pgapack.h"
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);

Releases

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

  1. 1.1–3.1
  2. 5.0–8

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