.TH PGAUpdateGeneration 8 "05/01/95" " " "PGAPack" .SH NAME PGAUpdateGeneration \- updates internal data structures for the next genetic algorithm iteration, and checks if the termination conditions, both user and PGAPack, have been met. .SH DESCRIPTION This routine must be called by both master and slave processes at the end of each GA generation. .SH INPUT PARAMETERS .PD 0 .TP ctx - context variable .PD 0 .TP comm - an MPI communicator .PD 1 .SH OUTPUT PARAMETERS .PD 0 .TP none .PD 1 .SH SYNOPSIS .nf #include "pgapack.h" void PGAUpdateGeneration(ctx, comm) PGAContext *ctx MPI_Comm comm .fi .SH LOCATION pga.c .SH EXAMPLE .nf Example: PGAContext *ctx; : PGAUpdateGeneration(ctx, MPI_COMM_WORLD); .fi