PGAGetCrossoverType
Returns the type of crossover selected
- Provided by: pgapack (Version: 1.1.1-3)
- Report a bug
Returns the type of crossover selected
#include "pgapack.h" int PGAGetCrossoverType(ctx) PGAContext *ctx
cross.c
Example:
PGAContext *ctx;
int crosstype;
:
crosstype = PGAGetCrossoverType(ctx);
switch (crosstype) {
case PGA_CROSSOVER_ONEPT:
printf("Crossover Type = PGA_CROSSOVER_ONEPT0);
break;
case PGA_CROSSOVER_TWOPT:
printf("Crossover Type = PGA_CROSSOVER_TWOPT0);
break;
case PGA_CROSSOVER_UNIFORM:
printf("Crossover Type = PGA_CROSSOVER_UNIFORM0);
break;
}