---
name: "PGASetMutationBoundedFlag"
section: "3"
platform: "linux"
package: "pgapack"
version: "1.1.1-3"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/PGASetMutationBoundedFlag"
---

# PGASetMutationBoundedFlag(3)

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.

## NAME

PGASetMutationBoundedFlag - 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.

## DESCRIPTION

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

  ## SYNOPSIS

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

## LOCATION

mutation.c

## EXAMPLE

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