Description Usage Arguments Details Value Author(s)

Performs crossover genetic operator in GABi genetic algorithm.

1 | ```
crossover(subpop,xoverpoints,pinvert=0)
``` |

`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. |

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).

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

Ed Curry [email protected]

GABi documentation built on May 1, 2019, 8:19 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.