Query: pgagetselecttype
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PGAGetSelectType(3) PGAPack PGAGetSelectType(3)NAMEPGAGetSelectType - Returns the type of selection selectedINPUT PARAMETERSctx - context variableOUTPUT PARAMETERSnoneSYNOPSIS#include "pgapack.h" int PGAGetSelectType(ctx) PGAContext *ctxLOCATIONselect.cEXAMPLEExample: PGAContext *ctx; int selecttype; : selecttype = PGAGetSelectType(ctx); switch (selecttype) { case PGA_SELECT_PROPORTIONAL: printf("Selection Type = PGA_SELECT_PROPORTIONAL0); break; case PGA_SELECT_SUS: printf("Selection Type = PGA_SELECT_SUS0); break; case PGA_SELECT_TOURNAMENT: printf("Selection Type = PGA_SELECT_TOURNAMENT0); break; case PGA_SELECT_PTOURNAMENT: printf("Selection Type = PGA_SELECT_PTOURNAMENT0); break; } 05/01/95 PGAGetSelectType(3)