Changeset 17698 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Prins/Crossovers/PrinsPermutationCrossover.cs
- Timestamp:
- 07/24/20 00:58:42 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Prins/Crossovers/PrinsPermutationCrossover.cs
r17226 r17698 50 50 } 51 51 52 protected override PrinsEncod ing Crossover(IRandom random, PrinsEncoding parent1, PrinsEncodingparent2) {52 protected override PrinsEncodedSolution Crossover(IRandom random, PrinsEncodedSolution parent1, PrinsEncodedSolution parent2) { 53 53 if (parent1.Length != parent2.Length) 54 return parent1.Clone() as PrinsEncod ing;54 return parent1.Clone() as PrinsEncodedSolution; 55 55 56 56 //note - the inner crossover is called here and the result is converted to a prins representation … … 67 67 ExecutionContext.Scope.Variables.Remove(childName); 68 68 69 return new PrinsEncod ing(permutation, ProblemInstance);69 return new PrinsEncodedSolution(permutation, ProblemInstance); 70 70 } else 71 71 return null;
Note: See TracChangeset
for help on using the changeset viewer.