PGARunGM(3)

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.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.