Function PGASetEvaluationUpToDateFlag
Defined in File evaluate.c
Function Documentation
-
void PGASetEvaluationUpToDateFlag(PGAContext *ctx, int p, int pop, int status)
Set the flag to indicate whether the evaluate function value is up-to-date or not.
Description
Note that this flag is always set to
PGA_TRUE
when_PGASetEvaluation()
is called.Example
Set the evaluation function flag for string
p
in populationPGA_NEWPOP
toPGA_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);
- Parameters:
ctx – context variable
p – string index
pop – symbolic constant of the population string p is in
status – boolean for whether up-to-date
- Returns:
Sets the flag associated with the evaluation function value of string p via side effect