Changeset 17698 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Crossovers/ZhuHeuristicCrossover1.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/Zhu/Crossovers/ZhuHeuristicCrossover1.cs
r17226 r17698 43 43 } 44 44 45 private void Swap(ZhuEncod ingindividual, int city1, int city2) {45 private void Swap(ZhuEncodedSolution individual, int city1, int city2) { 46 46 int index1 = individual.IndexOf(city1); 47 47 int index2 = individual.IndexOf(city2); … … 52 52 } 53 53 54 protected override ZhuEncod ing Crossover(IRandom random, ZhuEncoding parent1, ZhuEncodingparent2) {55 parent1 = parent1.Clone() as ZhuEncod ing;56 parent2 = parent2.Clone() as ZhuEncod ing;54 protected override ZhuEncodedSolution Crossover(IRandom random, ZhuEncodedSolution parent1, ZhuEncodedSolution parent2) { 55 parent1 = parent1.Clone() as ZhuEncodedSolution; 56 parent2 = parent2.Clone() as ZhuEncodedSolution; 57 57 58 ZhuEncod ing child = parent2.Clone() as ZhuEncoding;58 ZhuEncodedSolution child = parent2.Clone() as ZhuEncodedSolution; 59 59 60 60 if (parent1.Length != parent2.Length)
Note: See TracChangeset
for help on using the changeset viewer.