This is the command PGAGetFitnessMinType that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
PROGRAM:
NAME
PGAGetFitnessMinType - Returns the type of fitness transformation used for minimization
problems.
INPUT PARAMETERS
ctx - context variable
OUTPUT PARAMETERS
none
SYNOPSIS
#include "pgapack.h"
int PGAGetFitnessMinType(ctx)
PGAContext *ctx
LOCATION
fitness.c
EXAMPLE
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;
}
05/01/95 PGAGetFitnessMinType(1)
Use PGAGetFitnessMinType online using onworks.net services