PGASetSelectType(3)

PGASetSelectType3

Specify the type of selection to use.

Usage

#include "pgapack.h"
void  PGASetSelectType(ctx, select_type)
PGAContext *ctx
int select_type

Overview

Valid choices are PGA_SELECT_PROPORTIONAL, PGA_SELECT_SUS, PGA_SELECT_TOURNAMENT, and PGA_SELECT_PTOURNAMENT for proportional, stochastic universal selection, tournament, and probabilistic tournament selection, respectively. The default is PGA_SELECT_TOURNAMENT.

Input parameters

ctx

- context variable

select_type

- symbolic constant to specify selection type

Output parameters

none

Location

select.c

Examples

Example:
PGAContext *ctx;
:
PGASetSelectType(ctx, PGA_SELECT_SUS);

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.