- Timestamp:
- 06/30/10 15:54:47 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/ThreeOpt/AlbaTranslocationMoveGenerator.cs
r3947 r3991 84 84 Permutation permutation = VRPSolutionParameter.ActualValue as Permutation; 85 85 string moveName = TranslocationMoveGeneratorParameter.ActualValue.TranslocationMoveParameter.Name; 86 int cities = VRPSolutionParameter.ActualValue.Cities; 86 87 87 88 List<Scope> toBeDeleted = new List<Scope>(); … … 94 95 if(move.Index1 - 1 >= 0 && 95 96 move.Index3 -1 >= 0) 96 criteria1 = (permutation[move.Index1] >= 100&&97 permutation[move.Index1 - 1] >= 100&&98 permutation[move.Index3 - 1] >= 100);97 criteria1 = (permutation[move.Index1] >= cities && 98 permutation[move.Index1 - 1] >= cities && 99 permutation[move.Index3 - 1] >= cities); 99 100 100 101 int index3 = move.Index3 + (move.Index2 - move.Index1) + 1; … … 102 103 if (move.Index2 + 1 < permutation.Length && 103 104 index3 < permutation.Length) 104 criteria2 = (permutation[move.Index2] >= 100&&105 permutation[move.Index2 + 1] >= 100&&106 permutation[index3] >= 100);105 criteria2 = (permutation[move.Index2] >= cities && 106 permutation[move.Index2 + 1] >= cities && 107 permutation[index3] >= cities); 107 108 108 109 if(criteria1 && criteria2)
Note: See TracChangeset
for help on using the changeset viewer.