Query: pgarun
OS: debian
Section: 8
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PGARun(8) PGAPack PGARun(8)NAMEPGARun - Highest level routine to execute the genetic algorithm. It is called after PGACreate and PGASetup have been called.INPUT PARAMETERSctx - context variable evaluate - a pointer to the user's evaluation function, which must have the calling sequence shown in the example.OUTPUT PARAMETERSnoneSYNOPSIS#include "pgapack.h" void PGARun(ctx, ctx) PGAContext *ctx double (*evaluate)(PGAContext *c, int p, int pop)LOCATIONpga.cEXAMPLEExample: 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); 05/01/95 PGARun(8)