Function PGASetNAMWindowSize
Defined in File select.c
Function Documentation
-
void PGASetNAMWindowSize(PGAContext *ctx, int wsize)
Set window size for negative assortative mating (NAM).
Description
On selection select first individual as configured, for the second individual draw wsize individuals and select the one that has the largest genetic difference to the first individual. The default window size 1 doesn’t use NAM. See description [FR01].
Example
PGAContext *ctx, ... PGASetNAMWindowSize (ctx, 3);
- Parameters
ctx – context variable
wsize – window size
- Returns
None