PGAGetFitnessMinType(1)

PGAGetFitnessMinType1

Returns the type of fitness transformation used for minimization problems.

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

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.