Function PGASetCrowdingFunction

Function Documentation

void PGASetCrowdingFunction(PGAContext *ctx)

Set crowding / niching function to use.

Description

Depending on the NSGA replacement method in use this sets the crowding or niching function to use. This takes into account the preferences set via PGA_Set_Crowding_Method(). The function is called internally during PGACreate().

Example

PGAContext *ctx;

...
PGA_Set_Crowding_Function (ctx);

Parameters:
  • ctx – context variable

Returns:

None