Function PGASetRTRWindowSize
Defined in File pop.c
Function Documentation
-
void PGASetRTRWindowSize(PGAContext *ctx, int windowsize)
Set window size used for restricted tournament replacement.
Description
This function will have no effect unless
PGA_POPREPL_RTR
was specified as the population replacement strategy withPGASetPopReplaceType()
. The window size must be smaller than the population size. The default is \(\min (n, N/20)\) where \(n\) is the string length and \(N\) is the population size.Example
PGAContext *ctx; ... PGASetRTRWindowSize (ctx, windowsize);
- Parameters:
ctx – context variable
windowsize – size of the window for restricted tournament replacement
- Returns:
None