Function PGAGetRandomizeSelect

Function Documentation

int PGAGetRandomizeSelect(PGAContext *ctx)

Return the setting for additional select randomization.

Description

This function will return PGA_TRUE if a second randomization step after selection is performed. All selection schemes except PGA_SELECT_SUS already return the individuals in randomized order, previously this was randomized again. With this method you can find out if the randomization for selection schemes other than PGA_SELECT_SUS (for which a randomization step is always performed)

Example

PGAContext *ctx;
int v;

...
v = PGAGetRandomizeSelect (ctx);

Parameters
  • ctx – context variable

Returns

The setting of select randomization, true if on