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

# PGASetFitnessType(1)

Set the type of fitness algorithm to use.

## NAME

PGASetFitnessType - Set the type of fitness algorithm to use.

## DESCRIPTION

Valid choices are PGA\_FITNESS\_RAW, PGA\_FITNESS\_NORMAL, or PGA\_FITNESS\_RANKING for raw fitness (the evaluation function value), linear normalization, or linear ranking, respectively.  The default is PGA\_FITNESS\_RAW.

## INPUT PARAMETERS

- ctx

  \- context variable

- fitness\_type

  \- symbolic constant to specify fitness type

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
void  PGASetFitnessType(ctx, fitness_type)
PGAContext *ctx
int fitness_type
```

## LOCATION

fitness.c

## EXAMPLE

```
Example:
PGAContext *ctx;
:
PGASetFitnessType(ctx, PGA_FITNESS_RANKING);
```
