Changeset 12069 for trunk/sources/HeuristicLab.Problems.TestFunctions
- Timestamp:
- 02/25/15 10:07:54 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs
r12012 r12069 72 72 get { return Operators.OfType<BestSingleObjectiveTestFunctionSolutionAnalyzer>().FirstOrDefault(); } 73 73 } 74 private SingleObjectivePopulationDiversityAnalyzer SingleObjectivePopulationDiversityAnalyzer {75 get { return Operators.OfType< SingleObjectivePopulationDiversityAnalyzer>().FirstOrDefault(); }74 private PopulationSimilarityAnalyzer PopulationSimilarityAnalyzer { 75 get { return Operators.OfType<PopulationSimilarityAnalyzer>().FirstOrDefault(); } 76 76 } 77 77 #endregion … … 258 258 BestSingleObjectiveTestFunctionSolutionAnalyzer.BoundsParameter.ActualName = BoundsParameter.Name; 259 259 } 260 261 if (SingleObjectivePopulationDiversityAnalyzer != null) {262 SingleObjectivePopulationDiversityAnalyzer.MaximizationParameter.ActualName = MaximizationParameter.Name;263 SingleObjectivePopulationDiversityAnalyzer.QualityParameter.ActualName = Evaluator.QualityParameter.ActualName;264 SingleObjectivePopulationDiversityAnalyzer.ResultsParameter.ActualName = "Results";265 SingleObjectivePopulationDiversityAnalyzer.SimilarityCalculator = Operators.OfType<SingleObjectiveTestFunctionSimilarityCalculator>().SingleOrDefault();266 }267 260 } 268 261 private void InitializeOperators() { … … 272 265 273 266 Operators.Add(new BestSingleObjectiveTestFunctionSolutionAnalyzer()); 274 Operators.Add(new SingleObjectivePopulationDiversityAnalyzer());267 Operators.Add(new PopulationSimilarityAnalyzer(Operators.OfType<ISolutionSimilarityCalculator>())); 275 268 ParameterizeAnalyzers(); 276 269 Operators.AddRange(ApplicationManager.Manager.GetInstances<IRealVectorOperator>().Cast<IOperator>());
Note: See TracChangeset
for help on using the changeset viewer.