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

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

Introduction

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

Usage

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

public class RouletteWheelSelection implements SelectionPolicy {

    @Override
    public ChromosomePair select(Population population) throws IllegalArgumentException {
        // create a copy of the chromosome list
        List<Chromosome> chromosomes = Lists.newArrayList(((ListPopulation) population).getChromosomes());

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

/**
 * Tournament selection scheme. Each of the two selected chromosomes is selected
 * based on n-ary tournament -- this is done by drawing {@link #arity} random
 * chromosomes without replacement from the population, and then selecting the
 * fittest chromosome among them.
 *

From source file sos.base.util.genetic.SOSTournamentSelection.java

/**
 * Tournament selection scheme. Each of the two selected chromosomes is selected
 * based on n-ary tournament -- this is done by drawing {@link #arity} random
 * chromosomes without replacement from the population, and then selecting the
 * fittest chromosome among them.
 *