Changeset 17712 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu
- Timestamp:
- 08/04/20 07:06:39 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/ZhuEncodedSolution.cs
r17698 r17712 45 45 int city = this[i] + 1; 46 46 newTour.Stops.Add(city); 47 if (!ProblemInstance.TourFeasible(newTour, this)) { 47 var evalNewTour = ProblemInstance.EvaluateTour(newTour, this); 48 if (!evalNewTour.IsFeasible) { 48 49 newTour.Stops.Remove(city); 49 50 if (newTour.Stops.Count > 0)
Note: See TracChangeset
for help on using the changeset viewer.