public class PMXCrossover extends Object implements CrossoverOperator<List<PermutationSolution<Integer>>,List<PermutationSolution<Integer>>>
| Constructor and Description |
|---|
PMXCrossover(double crossoverProbability)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<PermutationSolution<Integer>> |
doCrossover(double probability,
List<PermutationSolution<Integer>> parents)
Perform the crossover operation
|
List<PermutationSolution<Integer>> |
execute(List<PermutationSolution<Integer>> parents)
Executes the operation
|
public List<PermutationSolution<Integer>> execute(List<PermutationSolution<Integer>> parents)
execute in interface Operator<List<PermutationSolution<Integer>>,List<PermutationSolution<Integer>>>parents - An object containing an array of two solutionspublic List<PermutationSolution<Integer>> doCrossover(double probability, List<PermutationSolution<Integer>> parents)
probability - Crossover probabilityparents - ParentsCopyright © 2015. All rights reserved.