PGAGetFitnessType1
Returns the type of fitness transformation used.
Usage
int PGAGetFitnessType(ctx)
PGAContext *ctx
Input parameters
- ctx
-
- context variable
Output parameters
- none
Location
fitness.c
Examples
Example:
PGAContext *ctx;
int fittype;
:
fittype = PGAGetFitnessType(ctx);
switch (fittype) {
case PGA_FITNESS_RAW:
printf("Fitness Type = PGA_FITNESS_RAW0);
break;
case PGA_FITNESS_NORMAL:
printf("Fitness Type = PGA_FITNESS_NORMAL0);
break;
case PGA_FITNESS_RANKING:
printf("Fitness Type = PGA_FITNESS_RANKING0);
break;
}
Releases
Unchanged in 4 releases since Debian 5.0 (Lenny).