Function PGAGetFitnessType
Defined in File fitness.c
Function Documentation
-
int PGAGetFitnessType(PGAContext *ctx)
Return the type of fitness transformation used.
Example
PGAContext *ctx; int fittype; ... fittype = PGAGetFitnessType (ctx); switch (fittype) { case PGA_FITNESS_RAW: printf ("Fitness Type = PGA_FITNESS_RAW\n"); break; case PGA_FITNESS_NORMAL: printf ("Fitness Type = PGA_FITNESS_NORMAL\n"); break; case PGA_FITNESS_RANKING: printf ("Fitness Type = PGA_FITNESS_RANKING\n"); break; }
- Parameters:
ctx – context variable
- Returns:
Returns the integer corresponding to the symbolic constant to specify the type of fitness transformation used