Function PGAGetFitnessMinType
Defined in File fitness.c
Function Documentation
-
int PGAGetFitnessMinType(PGAContext *ctx)
Return the type of fitness transformation used for minimization problems.
Example
PGAContext *ctx; int fitmintype; ... fitmintype = PGAGetFitnessMinType (ctx); switch (fitmintype) { case PGA_FITNESSMIN_RECIPROCAL: printf ("Fitness Minimization Type = PGA_FITNESSMIN_RECIPROCAL\n"); break; case PGA_FITNESSMIN_CMAX: printf ("Fitness Minimization Type = PGA_FITNESSMIN_CMAX\n"); break; }
- Parameters:
ctx – context variable
- Returns:
Returns the integer corresponding to the symbolic constant used to specify the type of fitness transformation used for minimization problems