Changeset 8478 for trunk/sources/HeuristicLab.Problems.TravelingSalesman
- Timestamp:
- 08/13/12 16:51:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r8334 r8478 24 24 using System.IO; 25 25 using System.Linq; 26 using HeuristicLab.Analysis; 26 27 using HeuristicLab.Common; 27 28 using HeuristicLab.Core; … … 83 84 private TSPPopulationDiversityAnalyzer TSPPopulationDiversityAnalyzer { 84 85 get { return Operators.OfType<TSPPopulationDiversityAnalyzer>().FirstOrDefault(); } 86 } 87 private SingleObjectivePopulationDiversityAnalyzer SingleObjectivePopulationDiversityAnalyzer { 88 get { return Operators.OfType<SingleObjectivePopulationDiversityAnalyzer>().FirstOrDefault(); } 85 89 } 86 90 #endregion … … 238 242 Operators.Add(new BestTSPSolutionAnalyzer()); 239 243 Operators.Add(new TSPAlleleFrequencyAnalyzer()); 240 Operators.Add(new TSPPopulationDiversityAnalyzer());244 Operators.Add(new SingleObjectivePopulationDiversityAnalyzer()); 241 245 ParameterizeAnalyzers(); 242 246 var operators = new HashSet<IPermutationOperator>(new IPermutationOperator[] { … … 324 328 TSPPopulationDiversityAnalyzer.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName; 325 329 TSPPopulationDiversityAnalyzer.ResultsParameter.ActualName = "Results"; 330 } 331 332 if (SingleObjectivePopulationDiversityAnalyzer != null) { 333 SingleObjectivePopulationDiversityAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name; 334 SingleObjectivePopulationDiversityAnalyzer.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName; 335 SingleObjectivePopulationDiversityAnalyzer.ResultsParameter.ActualName = "Results"; 336 SingleObjectivePopulationDiversityAnalyzer.SimilarityCalculator = Operators.OfType<TSPSimilarityCalculator>().SingleOrDefault(); 326 337 } 327 338 }
Note: See TracChangeset
for help on using the changeset viewer.