- Timestamp:
- 09/29/11 15:51:56 (13 years ago)
- Location:
- branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Crossovers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Crossovers/ZhuHeuristicCrossover1.cs
r6771 r6851 77 77 78 78 if (ProblemInstance.GetDistance( 79 child[i] + 1, parent1[(i + 1) % child.Length] + 1 )79 child[i] + 1, parent1[(i + 1) % child.Length] + 1, child) 80 80 < 81 81 ProblemInstance.GetDistance( 82 child[i] + 1, parent2[(i + 1) % child.Length] + 1 )) {82 child[i] + 1, parent2[(i + 1) % child.Length] + 1, child)) { 83 83 child[(i + 1) % child.Length] = parent1[(i + 1) % child.Length]; 84 84 Swap(parent2, parent2[(i + 1) % child.Length], parent1[(i + 1) % child.Length]); -
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Crossovers/ZhuHeuristicCrossover2.cs
r6771 r6851 79 79 80 80 if (ProblemInstance.GetDistance( 81 child[i] + 1, p1[parent1Index] + 1 )81 child[i] + 1, p1[parent1Index] + 1, child) 82 82 < 83 83 ProblemInstance.GetDistance( 84 child[i] + 1, p2[parent2Index] + 1 )) {84 child[i] + 1, p2[parent2Index] + 1, child)) { 85 85 child[(i + 1) % child.Length] = p1[parent1Index]; 86 86 } else {
Note: See TracChangeset
for help on using the changeset viewer.