Function PGAEvaluateCoop
Defined in File parallel.c
Function Documentation
-
static void PGAEvaluateCoop(PGAContext *ctx, int pop, double (*evaluate)(PGAContext*, int, int, double*), MPI_Comm comm)
Cooperative internal evaluation function.
Description
Evaluates all strings that need to be evaluated using two processors cooperatively. The first being the rank-0 process will send a string to the second for evaluation. While the second is evaluating, the rank-0 process will also evaluate a string.
- Parameters:
ctx – context variable
pop – symbolic constant of the population to be evaluated
evaluate – a pointer to a function to evaluate a string.
comm – an MPI communicator
- Returns:
None