PGASetEvaluation(3)

PGASetEvaluation3

Set the evaluation function value for a string to a specified value. also sets the evaulation up to date flag to pga_true.

Usage

PGAContext *ctx

int p

int pop

double val

Input parameters

ctx

- context variable

p

- string index

pop

- symbolic constant of the population string p is in

val

- the (user) evaluation value to assign to string p

Output parameters

none

Location

evaluate.c

Examples

Example:
Set the evaluation function value of string p in population PGA_NEWPOP
to 123.456.
PGAContext *ctx;
int p;
:
PGASetEvaluation(ctx, p, PGA_NEWPOP, 123.456);

Releases

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.