Class UniformCrossover<S extends BinarySolution>

java.lang.Object
org.uma.jmetal.operator.crossover.impl.UniformCrossover<S>
All Implemented Interfaces:
java.io.Serializable, CrossoverOperator<S>, Operator<java.util.List<S>,​java.util.List<S>>

public class UniformCrossover<S extends BinarySolution>
extends java.lang.Object
implements CrossoverOperator<S>
This class implements a uniform crossover operator for binary solutions.
Author:
Antonio J. Nebro
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    UniformCrossover​(double crossoverProbability)
    Constructor
    UniformCrossover​(double crossoverProbability, RandomGenerator<java.lang.Double> crossoverRandomGenerator)
    Constructor
  • Method Summary

    Modifier and Type Method Description
    double crossoverProbability()  
    void crossoverProbability​(double crossoverProbability)  
    java.util.List<S> doCrossover​(double probability, S parent1, S parent2)
    Perform the crossover operation.
    java.util.List<S> execute​(java.util.List<S> solutions)  
    int numberOfGeneratedChildren()  
    int numberOfRequiredParents()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait