Poster of Linux kernelThe best gift for a Linux geek
PGASetMutationOrCrossoverFlag

PGASetMutationOrCrossoverFlag

Section: PGAPack (8) Updated: 05/01/95
Local index Up
 

NAME

PGASetMutationOrCrossoverFlag - A boolean flag to indicate if recombination uses exactly one of crossover or mutation on selected strings.  

INPUT PARAMETERS

ctx
- context variable
flag
- PGA_TRUE (default) or PGA_FALSE
 

OUTPUT PARAMETERS

none

 

SYNOPSIS

#include "pgapack.h"
void  PGASetMutationOrCrossoverFlag(ctx, flag)
PGAContext *ctx
int flag
 

LOCATION

pga.c  

EXAMPLE

Example:
Set the genetic algorithm to use mutation only when crossover is
not used.

PGAContext *ctx;
:
PGASetMutationOrCrossoverFlag(ctx,PGA_FALSE);


 

Index

NAME
INPUT PARAMETERS
OUTPUT PARAMETERS
SYNOPSIS
LOCATION
EXAMPLE

This document was created by man2html, using the manual pages.
Time: 22:02:09 GMT, April 16, 2011