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

# PGASetEvaluationUpToDateFlag(1)

sets the flag associated with a string to PGA\_TRUE or PGA\_FLASE to indicate whether the evaluate function value is out-of-date or not.

## NAME

PGASetEvaluationUpToDateFlag - sets the flag associated with a string to PGA\_TRUE or PGA\_FLASE to indicate whether the evaluate function value is out-of-date or not.

## DESCRIPTION

Note that this flag is always set to PGA\_TRUE when PGASetEvaluation is called.

## INPUT PARAMETERS

- ctx

  \- context variable

- p

  \- string index

- pop

  \- symbolic constant of the population string p is in

- status

  \- boolean for whether up-to-date

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
void  PGASetEvaluationUpToDateFlag(ctx, p, pop, status)
PGAContext *ctx
int p
int pop
int status
```

## LOCATION

evaluate.c

## EXAMPLE

```
Example:
Set the evaluation function flag for string p in population PGA_NEWPOP
to PGA_FALSE (as might happen after, for example, calling a hill-climbing
routine that modified this string).
PGAContext *ctx;
int p;
:
PGASetEvaluationUpToDateFlag(ctx, p, PGA_NEWPOP, PGA_FALSE);
```
