---
name: "PGASetFitnessCmaxValue"
section: "3"
platform: "linux"
package: "pgapack"
version: "1.0.0.1-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/PGASetFitnessCmaxValue/3"
---

# PGASetFitnessCmaxValue(3)

The value of the multiplier used by PGAFitnessMinCmax so that the worst string has a nonzero fitness. The default value is 1.01.

## NAME

PGASetFitnessCmaxValue - The value of the multiplier used by PGAFitnessMinCmax so that the worst string has a nonzero fitness. The default value is 1.01.

## INPUT PARAMETERS

- ctx

  \- context variable

- val

  \- the value of the multiplier

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
void  PGASetFitnessCmaxValue(ctx, val)
PGAContext *ctx
double val
```

## LOCATION

fitness.c

## EXAMPLE

```
Example:
PGAContext *ctx;
:
PGASetFitnessCmaxValue(ctx, 1.2);
```
