PGARunGM(8)

PGARunGM8

High-level routine to execute the genetic algorithm using the global model.

Usage

PGAContext *ctx

MPI_Comm comm

Overview

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.

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

Unchanged in 4 releases since Debian 5.0 (Lenny).

  1. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.