crossover: Crossover

Description Usage Arguments Details Value Author(s)

Description

Performs crossover genetic operator in GABi genetic algorithm.

Usage

1
crossover(subpop,xoverpoints,pinvert=0)

Arguments

subpop

A numeric array representing a population of GA solutions. Each row corresponds to a distinct solution

xoverpoints

The number of 'crossover points' in the crossover operation (see details).

pinvert

The probability with which the order of the subset to be swapped of one of the solutions will be reversed prior to crossover.

Details

Crossover exchanges parts of two GABi solutions, giving rise to two 'offspring' solutions, each containing parts of the two 'parent' solutions. The position of the crossover points (i.e. the limits of the regions of the solutions that will be swapped with each other) is randomly sampled from the whole length of available positions (constrained only by the number of crossover points chosen).

Value

A numeric array representing a population of GA solutions. Each row corresponds to a distinct solution.

Author(s)

Ed Curry e.curry@imperial.ac.uk


edcurry/GABi documentation built on May 16, 2019, 7:10 p.m.