PGAGetMutationType(8)

NAME
PGAGetMutationType - Returns the type of mutation used

INPUT PARAMETERS
ctx - context variable

OUTPUT PARAMETERS
none

SYNOPSIS
#include "pgapack.h"
int  PGAGetMutationType(ctx)
PGAContext *ctx

LOCATION
get.c

EXAMPLE
Example:
PGAContext *ctx;
int mutatetype;
:
mutatetype = PGAGetMutationType(ctx);
switch (mutatetype) {
case PGA_MUTATION_FIXED:
printf("Mutation Type = PGA_MUTATION_FIXED);
break;
case PGA_MUTATION_STRINGLEN:
printf("Mutation Type = PGA_MUTATION_STRINGLEN);
break;
case PGA_MUTATION_HAMMING:
printf("Mutation Type = PGA_MUTATION_HAMMING);
break;
case PGA_MUTATION_UNIFORM:
printf("Mutation Type = PGA_MUTATION_UNIFORM);
break;
case PGA_MUTATION_GAUSSIAN:
printf("Mutation Type = PGA_MUTATION_GAUSSIAN);
break;
}