Specifies the size of the genetic algorithm population.
The default population size is 100.
ctx
- context variable
popsize
- the genetic algorithm population size to use
none
#include "pgapack.h" void PGASetPopSize(ctx, popsize) PGAContext *ctx int popsize
pop.c
Example: PGAContext *ctx; : PGASetPopSize(ctx, 200);