Function PGASetMaxFitnessRank
Defined in File fitness.c
Function Documentation
-
void PGASetMaxFitnessRank(PGAContext *ctx, double max)
The value of the parameter Max when using linear ranking for fitness determination.
Description
The default value is 1.2. The value must be from the interval \([1.0, 2.0]\). The fitness type must have been set to
PGA_FITNESS_RANKING
withPGASetFitnessType()
for this function call to have any effect.Example
PGAContext *ctx; ... PGASetMaxFitnessRank (ctx, 1.1);
- Parameters:
ctx – context variable
max – the value of the parameter Max when using linear ranking
- Returns:
None