PGARun
PGARun
Section: PGAPack (8) Updated: 05/01/95 Local index
Up
NAME
PGARun - Highest level routine to execute the genetic algorithm. It
is called after PGACreate and PGASetup have been called.
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
-
SYNOPSIS
#include "pgapack.h"
void PGARun(ctx, ctx)
PGAContext *ctx
double (*evaluate)(PGAContext *c, int p, int pop)
LOCATION
pga.c
EXAMPLE
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);
Index
- NAME
-
- INPUT PARAMETERS
-
- OUTPUT PARAMETERS
-
- SYNOPSIS
-
- LOCATION
-
- EXAMPLE
-
This document was created by
man2html,
using the manual pages.
Time: 22:02:08 GMT, April 16, 2011