java.lang.Object
org.uma.jmetal.operator.crossover.impl.TwoPointCrossover<T,S>
- All Implemented Interfaces:
Serializable,CrossoverOperator<T>,Operator<List<T>,List<T>>
public class TwoPointCrossover<T extends Solution<S>,S extends Number>
extends Object
implements CrossoverOperator<T>
Created by FlapKap on 27-05-2017.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleintint
-
Constructor Details
-
TwoPointCrossover
public TwoPointCrossover(double probability)
-
-
Method Details
-
execute
-
crossoverProbability
public double crossoverProbability()- Specified by:
crossoverProbabilityin interfaceCrossoverOperator<T extends Solution<S>>
-
numberOfRequiredParents
public int numberOfRequiredParents()- Specified by:
numberOfRequiredParentsin interfaceCrossoverOperator<T extends Solution<S>>
-
numberOfGeneratedChildren
public int numberOfGeneratedChildren()- Specified by:
numberOfGeneratedChildrenin interfaceCrossoverOperator<T extends Solution<S>>
-