Changeset 11266
- Timestamp:
- 08/05/14 09:54:07 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.Orienteering
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering.Views/3.3/OrienteeringSolutionView.cs
r11265 r11266 109 109 tour[i] = points[integerVector[i]]; 110 110 } 111 graphics.Draw Polygon(Pens.Black, tour);111 graphics.DrawLines(Pens.Black, tour); 112 112 } 113 113 -
branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering/3.3/Shakers/OrienteeringShakingOperator.cs
r11264 r11266 216 216 ).ToList(); 217 217 218 //double tourLength = distances.CalculateTourLength(actualTour, fixedPenalty);218 double tourLength = distances.CalculateTourLength(actualTour, fixedPenalty); 219 219 220 220 // As long as the created path is infeasible, remove elements 221 while ( distances.CalculateTourLength(actualTour, fixedPenalty)> maxDistance) {221 while (tourLength > maxDistance) { 222 222 // Remove the point that frees the largest distance 223 // Note, distance savings are not updated after removal 224 tourLength -= distances.CalculateRemovementSaving(actualTour, distanceSavings[0].Index, fixedPenalty); 223 225 actualTour.RemoveAt(distanceSavings[0].Index); 224 //tourLength -= distanceSavings[0].Saving;225 226 226 227 // Shift indices due to removal of a point in the tour … … 228 229 if (distanceSavings[i].Index > distanceSavings[0].Index) { 229 230 distanceSavings[i].Index--; 230 // Note, distance savings are not updated after removal231 231 } 232 232 }
Note: See TracChangeset
for help on using the changeset viewer.