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

# PGAGetEvaluation(3)

returns the evaluation function value for string p in population pop

## NAME

PGAGetEvaluation - returns the evaluation function value for string p in population pop

## INPUT PARAMETERS

- ctx

  \- context variable

- p

  \- string index

- pop

  \- symbolic constant of the population the string is in

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
double  PGAGetEvaluation(ctx, p, pop)
PGAContext *ctx
int p
int pop
```

## LOCATION

evaluate.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int p;
double eval;
:
eval = PGAGetEvaluation(ctx, p, PGA_NEWPOP);
```
