PGASetMutationBoundedFlag(3)

PGASetMutationBoundedFlag3

If this flag is set to pga_true, then for integer and real strings whenever a gene is mutated, if it underflows (overflows) the lower (upper)bound it is reset to the lower (upper) bound.

Usage

#include "pgapack.h"
void  PGASetMutationBoundedFlag(ctx, val)
PGAContext *ctx
int val

Overview

In this way all allele values remain within the range the integer strings were initialized on. If this flag is PGA_FALSE (the default), the alleles may take any values.

Input parameters

ctx

- context variable

flag

- either PGA_TRUE or PGA_FALSE

Output parameters

none

Location

mutation.c

Examples

Example:
PGAContext *ctx;
:
PGASetMutationBoundedFlag(ctx, PGA_TRUE);

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.