PGARunGM3
High-level routine to execute the genetic algorithm using the global model. it is called after pgacreate and pgasetup have been called. if a null communicator is given, a sequential execution method is used, otherwise, work is divided among the processors in the communicator.
Usage
PGAContext *ctx
MPI_Comm comm
Input parameters
- ctx
-
- context variable
- evaluate
-
- a pointer to the user's evaluation function, which must have the calling sequence shown in the example.
- comm
-
- an MPI communicator
Output parameters
- none
Location
parallel.c
Examples
Example: PGAContext *ctx; double f(PGAContext *ctx, int p, int pop); : PGARunGM(ctx, f, MPI_COMM_WORLD);
Releases
8 releases since Debian 1.1 (Buzz); the text changed 1 time.