Class NullCrossover<S extends Solution<?>>
java.lang.Object
org.uma.jmetal.operator.crossover.impl.NullCrossover<S>
- All Implemented Interfaces:
Serializable,CrossoverOperator<S>,Operator<List<S>,List<S>>
This class defines a null crossover operator: the parent solutions are returned without any
change. It can be useful when configuring a genetic algorithm and we want to use only mutation.
- Author:
- Antonio J. Nebro
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleExecute() methodintint
-
Constructor Details
-
NullCrossover
public NullCrossover()
-
-
Method Details
-
execute
-
numberOfRequiredParents
public int numberOfRequiredParents()- Specified by:
numberOfRequiredParentsin interfaceCrossoverOperator<S extends Solution<?>>
-
numberOfGeneratedChildren
public int numberOfGeneratedChildren()- Specified by:
numberOfGeneratedChildrenin interfaceCrossoverOperator<S extends Solution<?>>
-
crossoverProbability
public double crossoverProbability()- Specified by:
crossoverProbabilityin interfaceCrossoverOperator<S extends Solution<?>>
-