Changeset 8086 for branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Moves/IntraRouteInversion/AlbaExhaustiveIntraRouteInversionMoveGenerator.cs
- Timestamp:
- 06/22/12 11:11:38 (13 years ago)
- Location:
- branches/ScatterSearch (trunk integration)
- Files:
-
- 2 edited
- 6 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/ScatterSearch (trunk integration)
- Property svn:ignore
-
old new 20 20 bin 21 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.VehicleRouting (added) merged: 7895,7900,7904,7906,7923,7934,7999,8006,8053
- Property svn:mergeinfo changed
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Moves/IntraRouteInversion/AlbaExhaustiveIntraRouteInversionMoveGenerator.cs
r8052 r8086 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 0Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System; 22 using System.Collections.Generic; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Optimization; 25 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Problems.VehicleRouting.Encodings.Alba;27 using HeuristicLab.Parameters;28 using System.Collections.Generic;29 27 using HeuristicLab.Problems.VehicleRouting.Interfaces; 30 using HeuristicLab.Common;31 28 32 29 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba { … … 54 51 int currentTourStart = 0; 55 52 int currentTourEnd = 0; 56 while (currentTourEnd != individual.Length) {53 while (currentTourEnd != individual.Length) { 57 54 currentTourEnd = currentTourStart; 58 while (individual[currentTourEnd] < problemInstance.Cities.Value && 55 while (individual[currentTourEnd] < problemInstance.Cities.Value && 59 56 currentTourEnd < individual.Length) { 60 57 currentTourEnd++; … … 63 60 int tourLength = currentTourEnd - currentTourStart; 64 61 if (tourLength >= 4) { 65 for (int i = 0; i <= tourLength - 4; i++ 62 for (int i = 0; i <= tourLength - 4; i++) { 66 63 for (int j = i + 2; j <= tourLength - 2; j++) { 67 64 AlbaIntraRouteInversionMove move = new AlbaIntraRouteInversionMove( 68 currentTourStart + i, 69 currentTourStart + j, 65 currentTourStart + i, 66 currentTourStart + j, 70 67 individual); 71 68
Note: See TracChangeset
for help on using the changeset viewer.