Changeset 3221 for trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/ThreeOpt
- Timestamp:
- 03/26/10 00:04:24 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/MoveEvaluators/ThreeOpt/TSPThreeOptPathMoveEvaluator.cs
r3209 r3221 58 58 edge3target = permutation[move.Index3]; 59 59 } 60 if (move.Index1 == move.Index3 61 || move.Index2 - move.Index1 >= permutation.Length - 2 62 || move.Index1 == permutation.Length - 1 && move.Index3 == 0 63 || move.Index1 == 0 && move.Index3 == permutation.Length - 1) return 0; 60 64 double moveQuality = 0; 61 65 // remove three edges … … 91 95 } 92 96 if (move.Index1 == move.Index3 93 || move.Index2 - move.Index1 >= permutation.Length - 2) return 0; 97 || move.Index2 - move.Index1 >= permutation.Length - 2 98 || move.Index1 == permutation.Length - 1 && move.Index3 == 0 99 || move.Index1 == 0 && move.Index3 == permutation.Length - 1) return 0; 94 100 double moveQuality = 0; 95 101 // remove three edges
Note: See TracChangeset
for help on using the changeset viewer.