Function PGASetDECrossoverType

Function Documentation

void PGASetDECrossoverType(PGAContext *ctx, int val)

Set the crossover type for Differential Evolution.

Description

Differential Evolution supports the crossover types PGA_DE_CROSSOVER_BIN and PGA_DE_CROSSOVER_EXP, the default is PGA_DE_CROSSOVER_BIN. See Differential Evolution Crossover Constants for the constants and section Mutation of the user guide for details.

Example

PGAContext *ctx;

...
PGASetDECrossoverType (ctx, PGA_DE_CROSSOVER_EXP);

Parameters
  • ctx – context variable

  • val – the crossover type

Returns

None