Query: pgaselect
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PGASelect(3) PGAPack PGASelect(3)NAMEPGASelect - performs genetic algorithm selection using either the default selection scheme or that specified with PGASetSelectType().DESCRIPTIONValid selection methods are proportional, stochastic universal, tournament, or probabilistic tournament selection, PGA_SELECT_PROPORTIONAL, PGA_SELECT_SUS, PGA_SELECT_TOURNAMENT, and PGA_SELECT_PTOURNAMENT, respectively. This function updates an internal array with the indices of members of popix selected for recombination. These indices may be accessed with PGASelectNextIndex()INPUT PARAMETERSctx - context variable popix - symbolic constant of population to select fromOUTPUT PARAMETERSnoneSYNOPSIS#include "pgapack.h" void PGASelect(ctx, popix) PGAContext *ctx int popixLOCATIONselect.cEXAMPLEExample: PGAContext *ctx, : PGASelect(ctx, PGA_OLDPOP); 05/01/95 PGASelect(3)