.TH PGARun 8 "05/01/95" " " "PGAPack" .SH NAME PGARun \- Highest level routine to execute the genetic algorithm. It is called after PGACreate and PGASetup have been called. .SH INPUT PARAMETERS .PD 0 .TP ctx - context variable .PD 0 .TP evaluate - a pointer to the user's evaluation function, which must have the calling sequence shown in the example. .PD 1 .SH OUTPUT PARAMETERS .PD 0 .TP none .PD 1 .SH SYNOPSIS .nf #include "pgapack.h" void PGARun(ctx, ctx) PGAContext *ctx double (*evaluate)(PGAContext *c, int p, int pop) .fi .SH LOCATION pga.c .SH EXAMPLE .nf 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); .fi