PGAGetFitnessMinType(3)

PGAGetFitnessMinType3

Returns the type of fitness transformation used for minimization problems.

Part of PGAGetFitnessMinType(1).

Usage

int PGAGetFitnessMinType(ctx)

PGAContext *ctx

Input parameters

ctx

- context variable

Output parameters

none

Location

fitness.c

Examples

for minimization problems
Example:
PGAContext *ctx;
int fitmintype;
:
fitmintype = PGAGetFitnessMinType(ctx);
switch (fitmintype) {
case PGA_FITNESSMIN_RECIPROCAL:
printf("Fitness Minimization Type = PGA_FITNESSMIN_RECIPROCAL0);
break;
case PGA_FITNESSMIN_CMAX:
printf("Fitness Minimization Type = PGA_FITNESSMIN_CMAX0);
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.