Changeset 8498 for branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/DuplicateSolutionsAnalyzer.cs
- Timestamp:
- 08/18/12 00:15:40 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/DuplicateSolutionsAnalyzer.cs
r8415 r8498 56 56 } 57 57 58 private Data Row dtRow;58 private DataTableHelper chartingHelper; 59 59 #endregion 60 60 … … 68 68 SimilarityCalculatorParameter.Value.SolutionVariableName = "TSPTour"; 69 69 SimilarityCalculatorParameter.Value.QualityVariableName = "TSPTourLength"; 70 71 chartingHelper = new DataTableHelper(); 70 72 } 71 73 … … 75 77 76 78 public override IOperation Apply() { 77 if (!Results.ContainsKey("Duplicate Solutions")) { 78 DataTable dt = new DataTable("Duplicate Solutions"); 79 dtRow = new DataRow("Duplicate Solutions per Generation"); 80 dt.Rows.Add(dtRow); 81 Results.Add(new Result("Duplicate Solutions", dt)); 82 } 79 chartingHelper.InitializeChart(Results, "Duplicate Solutions", "Duplicate Solutions per Generation"); 83 80 84 81 var similarities = SimilarityCalculatorParameter.Value.CalculateSolutionCrowdSimilarity(ExecutionContext.Scope); … … 92 89 } 93 90 } 94 dtRow.Values.Add(counter);95 91 92 chartingHelper.AddPoint(counter); 96 93 return base.Apply(); 97 94 }
Note: See TracChangeset
for help on using the changeset viewer.