PGAGetPopReplaceType(3)

PGAGetPopReplaceType3

Returns the symbolic constant used to determine which strings to copy from the old population to the new population.

Part of PGAGetPopReplaceType(8).

Usage

int PGAGetPopReplaceType(ctx)

PGAContext *ctx

Input parameters

ctx

- context variable

Output parameters

none

Location

pop.c

Examples

Example:
PGAContext *ctx;
int popreplace;
:
popreplace = PGAGetPopReplaceType(ctx);
switch (popreplace) {
case PGA_POPREPL_BEST:
printf("Replacement Strategy = PGA_POPREPL_BEST0);
break;
case PGA_POPREPL_RANDOM_REP:
printf("Replacement Strategy = PGA_POPREPL_RANDOM_REP0);
break;
case PGA_POPREPL_RANDOM_NOREP:
printf("Replacement Strategy = PGA_POPREPL_RANDOM_NOREP0);
break;
}

Releases

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.