Class EdgeRecombinationCrossover
java.lang.Object
org.uma.jmetal.operator.crossover.impl.EdgeRecombinationCrossover
- All Implemented Interfaces:
Serializable,CrossoverOperator<PermutationSolution<Integer>>,Operator<List<PermutationSolution<Integer>>,List<PermutationSolution<Integer>>>
public class EdgeRecombinationCrossover
extends Object
implements CrossoverOperator<PermutationSolution<Integer>>
Edge Recombination Crossover (ERX) operator for permutation-based genetic algorithms. This
operator constructs offspring by preserving adjacency (edge) information from the parent
permutations. It builds an edge map (also known as an adjacency matrix) of adjacent genes from
both parents and constructs offspring by traversing this map, selecting edges that exist in
either parent to maintain as much parental adjacency as possible.
- Author:
- Nicolás R. Uribe
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleexecute(List<PermutationSolution<Integer>> solutions) intint
-
Constructor Details
-
EdgeRecombinationCrossover
public EdgeRecombinationCrossover(double probability)
-
-
Method Details
-
execute
- Specified by:
executein interfaceOperator<List<PermutationSolution<Integer>>,List<PermutationSolution<Integer>>> - Parameters:
solutions- The data to process
-
crossoverProbability
public double crossoverProbability()- Specified by:
crossoverProbabilityin interfaceCrossoverOperator<PermutationSolution<Integer>>
-
numberOfRequiredParents
public int numberOfRequiredParents()- Specified by:
numberOfRequiredParentsin interfaceCrossoverOperator<PermutationSolution<Integer>>
-
numberOfGeneratedChildren
public int numberOfGeneratedChildren()- Specified by:
numberOfGeneratedChildrenin interfaceCrossoverOperator<PermutationSolution<Integer>>
-