PGASetUniformCrossoverProb(3)

PGASetUniformCrossoverProb3

Probability used in uniform crossover to specify that an allele value value be selected from a particular parent.

Usage

#include "pgapack.h"
void  PGASetUniformCrossoverProb(ctx, uniform_cross_prob)
PGAContext *ctx
double uniform_cross_prob

Overview

The default is 0.6. The crossover type must have been set to PGA_CROSSOVER_UNIFORM with PGASetCrossoverType for this function call to have any effect.

Input parameters

ctx

- context variable

p

- the crossover probability

Output parameters

none

Location

cross.c

Examples

Example:
PGAContext *ctx;
:
PGASetUniformCrossoverProb(ctx,0.9);

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.