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