PGASetEvaluate(2)

NAME
PGASetEvaluate - updates the evaluation function value and associated flag for a string

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

SYNOPSIS
#include "pgapack.h"
void  PGASetEvaluate(ctx, p, pop, val)
PGAContext *ctx
int p
int pop
double val

LOCATION
fitness.c

EXAMPLE
Example:
To set the evaluation function value of string p in population PGA_NEWPOP
to 123.456 use
PGAContext *ctx;
int p;
:
PGASetEvaluate(ctx, p, PGA_NEWPOP, 123.456);