Poster of Linux kernelThe best gift for a Linux geek
PGASetCrossoverType

PGASetCrossoverType

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

NAME

PGASetCrossoverType - specify the type of crossover to use.  

DESCRIPTION

Valid choices are PGA_CROSSOVER_ONEPT, PGA_CROSSOVER_TWOPT, or PGA_CROSSOVER_UNIFORM for one-point, two-point, and uniform crossover, respectively. The default is PGA_CROSSOVER_TWOPT.  

INPUT PARAMETERS

ctx
- context variable
crossover_type
- symbolic constant to specify crossover type
 

OUTPUT PARAMETERS

none

 

SYNOPSIS

#include "pgapack.h"
void  PGASetCrossoverType(ctx, crossover_type)
PGAContext *ctx
int crossover_type
 

LOCATION

cross.c  

EXAMPLE

Example:
Use uniform crossover when crossingover strings.

PGAContext *ctx;
:
PGASetCrossoverType(ctx, PGA_CROSSOVER_UNIFORM);


 

Index

NAME
DESCRIPTION
INPUT PARAMETERS
OUTPUT PARAMETERS
SYNOPSIS
LOCATION
EXAMPLE

This document was created by man2html, using the manual pages.
Time: 21:52:26 GMT, April 16, 2011