Function PGASetFitnessType
Defined in File fitness.c
Function Documentation
-
void PGASetFitnessType(PGAContext *ctx, int fitness_type)
Set the type of fitness algorithm to use.
Description
Valid choices are
PGA_FITNESS_RAW
,PGA_FITNESS_NORMAL
, orPGA_FITNESS_RANKING
for raw fitness (the evaluation function value), linear normalization, or linear ranking, respectively. The default isPGA_FITNESS_RAW
. See Constants for Fitness Types for the constants and section String Evaluation and Fitness in the user guide for details.Example
PGAContext *ctx; ... PGASetFitnessType (ctx, PGA_FITNESS_RANKING);
- Parameters:
ctx – context variable
fitness_type – symbolic constant to specify fitness type
- Returns:
None