PGASetPopSize(8)

PGASetPopSize8

Specifies the size of the genetic algorithm population.

Usage

void PGASetPopSize(ctx, popsize)

PGAContext *ctx

int popsize

Overview

The default population size is 100.

Input parameters

ctx

- context variable

popsize

- the genetic algorithm population size to use

Output parameters

none

Location

pop.c

Examples

Example:
PGAContext *ctx;
:
PGASetPopSize(ctx, 200);

Releases

Unchanged in 4 releases since Debian 5.0 (Lenny).

  1. 5.0–8

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