Rechercher une page de manuel
PGASetMutationAndCrossoverFlag
Langue: en
Version: 303783 (debian - 07/07/09)
Section: 8 (Commandes administrateur)
NAME
PGASetMutationAndCrossoverFlag - A boolean flag to indicate if recombination uses both crossover and mutation on selected stringsINPUT PARAMETERS
- ctx
- - context variable
- flag
- - PGA_TRUE (default) or PGA_FALSE
OUTPUT PARAMETERS
- none
SYNOPSIS
#include "pgapack.h" void PGASetMutationAndCrossoverFlag(ctx, flag) PGAContext *ctx int flag
LOCATION
pga.cEXAMPLE
Example: Set the genetic algorithm to use both crossover and mutation when reproducing strings. PGAContext *ctx; : PGASetMutationAndCrossoverFlag(ctx,PGA_FALSE);
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre