.TH PGAGetFitnessMinType 1 "05/01/95" " " "PGAPack" .SH NAME PGAGetFitnessMinType \- Returns the type of fitness transformation used for minimization problems. .SH INPUT PARAMETERS .PD 0 .TP ctx - context variable .PD 1 .SH OUTPUT PARAMETERS .PD 0 .TP none .PD 1 .SH SYNOPSIS .nf #include "pgapack.h" int PGAGetFitnessMinType(ctx) PGAContext *ctx .fi .SH LOCATION fitness.c .SH EXAMPLE .nf for minimization problems Example: PGAContext *ctx; int fitmintype; : fitmintype = PGAGetFitnessMinType(ctx); switch (fitmintype) { case PGA_FITNESSMIN_RECIPROCAL: printf("Fitness Minimization Type = PGA_FITNESSMIN_RECIPROCAL\n"); break; case PGA_FITNESSMIN_CMAX: printf("Fitness Minimization Type = PGA_FITNESSMIN_CMAX\n"); break; } .fi