Returns the type of fitness transformation used.
ctx
- context variable
none
#include "pgapack.h" int PGAGetFitnessType(ctx) PGAContext *ctx
fitness.c
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; }