Function PGASetCrowdingMethod
Defined in File pop.c
Function Documentation
-
void PGASetCrowdingMethod(PGAContext *ctx, int method)
Set crowding / niching method to use.
Description
In NSGA-II different crowding algorithms can be used. The crowding algorithm tries to ensure that solutions are spread over the whole pareto front. See Constants for Crowding Methods for the possible values.
Example
PGAContext *ctx; ... PGA_Set_Crowding_Method (ctx, PGA_CROWDING_CD_PRUNE);
- Parameters:
ctx – context variable
method – method to use
- Returns:
None