Function PGAGetAuxEvaluation
Defined in File evaluate.c
Function Documentation
-
double *PGAGetAuxEvaluation(PGAContext *ctx, int p, int pop)
Return the auxiliary evaluation for string p in population pop.
Description
This is mostly used internally: the evaluation function will get a pointer to this anyway, this is the only point where the aux evaluations should be modified.
Example
PGAContext *ctx; int p; double *aux; ... aux = PGAGetAuxEvaluation (ctx, p, PGA_NEWPOP);
- Parameters:
ctx – context variable
p – string index
pop – symbolic constant of the population the string is in
- Returns:
The evaluation function value for string p in population pop