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

# PGAGetEvaluationUpToDateFlag(3)

returns true/false to indicate whether the evaluate function value is up to date

## NAME

PGAGetEvaluationUpToDateFlag - returns true/false to indicate whether the evaluate function value is up to date

## 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"
int  PGAGetEvaluationUpToDateFlag(ctx, p, pop)
PGAContext *ctx
int p
int pop
```

## LOCATION

evaluate.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int uptodate;
:
uptodate = PGAGetEvaluationUpToDateFlag(ctx);
switch (uptodate) {
case PGA_TRUE:
printf("Evaluation function value current0);
break;
case PGA_FALSE:
printf("Evaluation function value out-of-date0);
break;
}
```
