Function PGASetMixingType

Function Documentation

void PGASetMixingType(PGAContext *ctx, int type)

Set strategy for combining mutation and crossover.

Example

Set the genetic algorithm to use mutation only.

PGAContext *ctx;

...
PGASetMixingType (ctx, PGA_MIX_MUTATE_ONLY);

Parameters
  • ctx – context variable

  • type – Type of Mutation/Crossover combination

Returns

None