PGASelect(3)

PGASelect3

Performs genetic algorithm selection using either the default selection scheme or that specified with pgasetselecttype().

Usage

#include "pgapack.h"
void  PGASelect(ctx, popix)
PGAContext *ctx
int popix

Overview

Valid 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 parameters

ctx

- context variable

popix

- symbolic constant of population to select from

Output parameters

none

Location

select.c

Examples

Example:
PGAContext *ctx,
:
PGASelect(ctx, PGA_OLDPOP);

Releases

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

  1. 1.1–3.1
  2. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.