Example usage for org.apache.commons.math3.genetics CrossoverPolicy interface-usage

List of usage examples for org.apache.commons.math3.genetics CrossoverPolicy interface-usage

Introduction

In this page you can find the example usage for org.apache.commons.math3.genetics CrossoverPolicy interface-usage.

Usage

From source file org.apache.kylin.cube.cuboid.algorithm.generic.BitsOnePointCrossover.java

/**
 * Modified from the OnePointCrossover.java in https://github.com/apache/commons-math
 * <p>
 * One point crossover policy. A random crossover point is selected and the
 * first part from each parent is copied to the corresponding child, and the
 * second parts are copied crosswise.

From source file eu.tsp.sal.NPointCrossover.java

/**
 * N-point crossover policy. For each iteration a random crossover point is
 * selected and the first part from each parent is copied to the corresponding
 * child, and the second parts are copied crosswise.
 *
 * Example (2-point crossover):