PGASetMutationProb(3)

PGASetMutationProb3

Specifies the probability that a given allele will be mutated.

Usage

#include "pgapack.h"
void  PGASetMutationProb(ctx, mutation_prob)
PGAContext *ctx
double mutation_prob

Overview

If this is called without calling PGASetMutationType(), the default mutation type is PGA_MUTATION_FIXED. The default probability is the reciprocal of the string length.

Input parameters

ctx

- context variable

p

- the mutation probability

Output parameters

none

Location

mutation.c

Examples

Example:
PGAContext *ctx;
:
PGASetMutationProb(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.