PGARun(3)

PGARun3

Highest level routine to execute the genetic algorithm. it is called after pgacreate and pgasetup have been called.

Part of PGARun(8).

Usage

void PGARun(ctx, ctx)

PGAContext *ctx

double (*evaluate)(PGAContext *c, int p, int pop)

Input parameters

ctx

- context variable

evaluate

- a pointer to the user's evaluation function, which must have the calling sequence shown in the example.

Output parameters

none

Location

pga.c

Examples

Example:
PGAContext *ctx,
double f(PGAContext *ctx, int p, int pop);
:
ctx = PGACreate(&argc, argv, PGA_DATATYPE_BINARY, 100, PGA_MAXIMIZE);
PGASetUp(ctx);
PGARun(ctx, f);
PGADestroy(ctx);

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.