PGASetCrossoverType(3)

PGASetCrossoverType3

Specify the type of crossover to use.

Usage

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

Overview

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

Location

cross.c

Examples

Example:
Use uniform crossover when crossingover strings.
PGAContext *ctx;
:
PGASetCrossoverType(ctx, PGA_CROSSOVER_UNIFORM);

Releases

12 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1–3.1
  2. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.