Updates internal data structures for the next genetic algorithm iteration, and checks if the termination conditions, both user and pgapack, have been met.
This routine must be called by both master and slave processes at the end of each GA generation.
- context variable
- an MPI communicator
#include "pgapack.h" void PGAUpdateGeneration(ctx, comm) PGAContext *ctx MPI_Comm comm
Example: PGAContext *ctx; : PGAUpdateGeneration(ctx, MPI_COMM_WORLD);