Function PGASetDECrossoverType
Defined in File mutation.c
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
andPGA_DE_CROSSOVER_EXP
, the default isPGA_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