Changeset 8720 for trunk/sources/HeuristicLab.Problems.TravelingSalesman
- Timestamp:
- 10/02/12 18:59:15 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/Analyzers/TSPPopulationDiversityAnalyzer.cs
r7259 r8720 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Analysis; 23 24 using HeuristicLab.Common; … … 25 26 using HeuristicLab.Encodings.PermutationEncoding; 26 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using HeuristicLab.PluginInfrastructure; 27 29 28 30 namespace HeuristicLab.Problems.TravelingSalesman { 31 // BackwardsCompatibility3.3 32 #region Backwards compatible code, remove with 3.4 29 33 /// <summary> 30 34 /// An operator for analyzing the diversity of solutions of Traveling Salesman Problems given in path representation. 31 35 /// </summary> 36 [Obsolete] 37 [NonDiscoverableType] 32 38 [Item("TSPPopulationDiversityAnalyzer", "An operator for analyzing the diversity of solutions of Traveling Salesman Problems given in path representation.")] 33 39 [StorableClass] … … 79 85 } 80 86 } 87 #endregion 81 88 } -
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r8478 r8720 82 82 get { return Operators.OfType<TSPAlleleFrequencyAnalyzer>().FirstOrDefault(); } 83 83 } 84 private TSPPopulationDiversityAnalyzer TSPPopulationDiversityAnalyzer {85 get { return Operators.OfType<TSPPopulationDiversityAnalyzer>().FirstOrDefault(); }86 }87 84 private SingleObjectivePopulationDiversityAnalyzer SingleObjectivePopulationDiversityAnalyzer { 88 85 get { return Operators.OfType<SingleObjectivePopulationDiversityAnalyzer>().FirstOrDefault(); } … … 321 318 TSPAlleleFrequencyAnalyzer.BestKnownSolutionParameter.ActualName = BestKnownSolutionParameter.Name; 322 319 TSPAlleleFrequencyAnalyzer.ResultsParameter.ActualName = "Results"; 323 }324 325 if (TSPPopulationDiversityAnalyzer != null) {326 TSPPopulationDiversityAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name;327 TSPPopulationDiversityAnalyzer.SolutionParameter.ActualName = SolutionCreator.PermutationParameter.ActualName;328 TSPPopulationDiversityAnalyzer.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName;329 TSPPopulationDiversityAnalyzer.ResultsParameter.ActualName = "Results";330 320 } 331 321 … … 448 438 try { 449 439 EvaluateAndLoadTour(data.BestKnownTour); 450 } catch (InvalidOperationException) { 440 } 441 catch (InvalidOperationException) { 451 442 if (data.BestKnownQuality.HasValue) 452 443 BestKnownQuality = new DoubleValue(data.BestKnownQuality.Value);
Note: See TracChangeset
for help on using the changeset viewer.