Changeset 12069 for trunk/sources/HeuristicLab.Problems.TravelingSalesman
- Timestamp:
- 02/25/15 10:07:54 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r12012 r12069 82 82 get { return Operators.OfType<TSPAlleleFrequencyAnalyzer>().FirstOrDefault(); } 83 83 } 84 private SingleObjectivePopulationDiversityAnalyzer SingleObjectivePopulationDiversityAnalyzer {85 get { return Operators.OfType< SingleObjectivePopulationDiversityAnalyzer>().FirstOrDefault(); }84 private PopulationSimilarityAnalyzer PopulationSimilarityAnalyzer { 85 get { return Operators.OfType<PopulationSimilarityAnalyzer>().FirstOrDefault(); } 86 86 } 87 87 #endregion … … 239 239 Operators.Add(new BestTSPSolutionAnalyzer()); 240 240 Operators.Add(new TSPAlleleFrequencyAnalyzer()); 241 Operators.Add(new SingleObjectivePopulationDiversityAnalyzer());241 Operators.Add(new PopulationSimilarityAnalyzer(Operators.OfType<ISolutionSimilarityCalculator>())); 242 242 ParameterizeAnalyzers(); 243 243 var operators = new HashSet<IPermutationOperator>(new IPermutationOperator[] { … … 318 318 TSPAlleleFrequencyAnalyzer.BestKnownSolutionParameter.ActualName = BestKnownSolutionParameter.Name; 319 319 TSPAlleleFrequencyAnalyzer.ResultsParameter.ActualName = "Results"; 320 }321 322 if (SingleObjectivePopulationDiversityAnalyzer != null) {323 SingleObjectivePopulationDiversityAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name;324 SingleObjectivePopulationDiversityAnalyzer.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName;325 SingleObjectivePopulationDiversityAnalyzer.ResultsParameter.ActualName = "Results";326 SingleObjectivePopulationDiversityAnalyzer.SimilarityCalculator = Operators.OfType<TSPSimilarityCalculator>().SingleOrDefault();327 320 } 328 321 }
Note: See TracChangeset
for help on using the changeset viewer.