Returns the type of mutation used
ctx
- context variable
none
#include "pgapack.h" int PGAGetMutationType(ctx) PGAContext *ctx
mutation.c
Example: PGAContext *ctx; int mutatetype; : mutatetype = PGAGetMutationType(ctx); switch (mutatetype) { case PGA_MUTATION_CONSTANT: printf("Mutation Type = PGA_MUTATION_CONSTANT\n"); break; case PGA_MUTATION_RANGE: printf("Mutation Type = PGA_MUTATION_RANGE\n"); break; case PGA_MUTATION_UNIFORM: printf("Mutation Type = PGA_MUTATION_UNIFORM\n"); break; case PGA_MUTATION_GAUSSIAN: printf("Mutation Type = PGA_MUTATION_GAUSSIAN\n"); break; case PGA_MUTATION_PERMUTE: printf("Mutation Type = PGA_MUTATION_PERMUTE\n"); break; }