Class OXDCrossover
java.lang.Object
org.uma.jmetal.operator.crossover.impl.OXDCrossover
- All Implemented Interfaces:
Serializable,CrossoverOperator<PermutationSolution<Integer>>,Operator<List<PermutationSolution<Integer>>,List<PermutationSolution<Integer>>>
Order-based Crossover with Duplicate Elimination (OXD) operator for permutation-based genetic
algorithms. This operator combines elements of the standard Order Crossover (OX) and handles
duplicates to ensure valid permutations. It selects a subsequence from one parent and fills the
remaining positions from the other parent, maintaining the order and avoiding duplicate genes to
produce valid offspring permutations.
- Author:
- Nicolás R. Uribe
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleexecute(List<PermutationSolution<Integer>> solutions) intint
-
Constructor Details
-
OXDCrossover
public OXDCrossover(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>>
-