PGASetMutationAndCrossoverFlag3
A boolean flag to indicate if recombination uses both crossover and mutation on selected strings
Part of PGASetMutationAndCrossoverFlag(8).
Usage
void PGASetMutationAndCrossoverFlag(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 both crossover and mutation when reproducing strings. PGAContext *ctx; : PGASetMutationAndCrossoverFlag(ctx,PGA_FALSE);
Releases
8 releases since Debian 1.1 (Buzz); the text changed 1 time.