PGAGetFitnessType(1)

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).

  1. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.