PGASetMutationOrCrossoverFlag3
A boolean flag to indicate if recombination uses exactly one of crossover or mutation on selected strings.
Part of PGASetMutationOrCrossoverFlag(8).
Usage
void PGASetMutationOrCrossoverFlag(ctx,
flag)
PGAContext *ctx
int flag
Input parameters
ctx
|
- context variable |
|---|---|
flag
|
- PGA_TRUE (default) or PGA_FALSE |
Output parameters
- none
Location
pga.c
Examples
Example: Set the genetic algorithm to use mutation only when crossover is not used. PGAContext *ctx; : PGASetMutationOrCrossoverFlag(ctx,PGA_FALSE);
Releases
8 releases since Debian 1.1 (Buzz); the text changed 1 time.