PGAGetFitnessType(3)

PGAGetFitnessType3

Returns the type of fitness transformation used.

Part of PGAGetFitnessType(1).

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

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.