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

# PGAGetWorstIndex(3)

returns the index of the string with the worst evaluation function value in population pop

## NAME

PGAGetWorstIndex - returns the index of the string with the worst evaluation function value in population pop

## INPUT PARAMETERS

- ctx

  \- context variable

- pop

  \- symbolic constant of the population to find the worst string in

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
int  PGAGetWorstIndex(ctx, pop)
PGAContext *ctx
int pop
```

## LOCATION

utility.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int worst;
:
worst = PGAGetWorstIndex(ctx,PGA_OLDPOP);
```
