Changeset 9418
- Timestamp:
- 05/02/13 13:15:07 (12 years ago)
- Location:
- branches/HeuristicLab.Analysis.AlgorithmBehavior
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Algorithms.ESLimitedGA/3.3/HeuristicLab.Algorithms.ESLimitedGA-3.3.csproj
r9412 r9418 103 103 <Reference Include="HeuristicLab.Analysis-3.3"> 104 104 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Analysis-3.3.dll</HintPath> 105 <Private>False</Private> 105 106 </Reference> 106 107 <Reference Include="HeuristicLab.Collections-3.3"> 107 108 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Collections-3.3.dll</HintPath> 109 <Private>False</Private> 108 110 </Reference> 109 111 <Reference Include="HeuristicLab.Common-3.3"> 110 112 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath> 113 <Private>False</Private> 111 114 </Reference> 112 115 <Reference Include="HeuristicLab.Core-3.3"> 113 116 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Core-3.3.dll</HintPath> 117 <Private>False</Private> 114 118 </Reference> 115 119 <Reference Include="HeuristicLab.Data-3.3"> 116 120 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Data-3.3.dll</HintPath> 121 <Private>False</Private> 117 122 </Reference> 118 123 <Reference Include="HeuristicLab.Operators-3.3"> 119 124 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Operators-3.3.dll</HintPath> 125 <Private>False</Private> 120 126 </Reference> 121 127 <Reference Include="HeuristicLab.Optimization-3.3"> 122 128 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization-3.3.dll</HintPath> 129 <Private>False</Private> 123 130 </Reference> 124 131 <Reference Include="HeuristicLab.Optimization.Operators-3.3"> 125 132 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization.Operators-3.3.dll</HintPath> 133 <Private>False</Private> 126 134 </Reference> 127 135 <Reference Include="HeuristicLab.Parameters-3.3"> 128 136 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Parameters-3.3.dll</HintPath> 137 <Private>False</Private> 129 138 </Reference> 130 139 <Reference Include="HeuristicLab.Persistence-3.3"> 131 140 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Persistence-3.3.dll</HintPath> 141 <Private>False</Private> 132 142 </Reference> 133 143 <Reference Include="HeuristicLab.PluginInfrastructure-3.3"> 134 144 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 145 <Private>False</Private> 135 146 </Reference> 136 147 <Reference Include="HeuristicLab.Random-3.3"> 137 148 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Random-3.3.dll</HintPath> 149 <Private>False</Private> 138 150 </Reference> 139 151 <Reference Include="HeuristicLab.Selection-3.3"> 140 152 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Selection-3.3.dll</HintPath> 153 <Private>False</Private> 141 154 </Reference> 142 155 <Reference Include="System" /> -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/DuplicateSolutionsAnalyzer.cs
r8797 r9418 21 21 22 22 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using HeuristicLab.Common; … … 59 60 60 61 [Storable] 61 private DataTableHelper chartingHelper ;62 private DataTableHelper chartingHelper, similarityChartHelper; 62 63 #endregion 63 64 … … 68 69 : base(original, cloner) { 69 70 chartingHelper = (DataTableHelper)original.chartingHelper.Clone(cloner); 71 similarityChartHelper = (DataTableHelper)original.similarityChartHelper.Clone(cloner); 70 72 } 71 73 … … 77 79 78 80 chartingHelper = new DataTableHelper(); 81 similarityChartHelper = new DataTableHelper(); 79 82 } 80 83 … … 88 91 } 89 92 chartingHelper.InitializeChart(Results, "Duplicate Solutions", new string[] { "Duplicate Solutions per Generation" }); 93 similarityChartHelper.InitializeChart(Results, "Average Similarity", new string[] { "Avg. Similarity per Generation" }); 90 94 91 95 var similarities = SimilarityCalculatorParameter.Value.CalculateSolutionCrowdSimilarity(ExecutionContext.Scope); 96 List<double> similaritiesArr = new List<double>(); 92 97 int counter = 0; 93 98 for (int i = 0; i < similarities.Length; i++) { … … 98 103 } 99 104 } 105 for (int j = 0; j < similarities[i].Length; j++) { 106 if (i != j) { 107 similaritiesArr.Add(similarities[i][j]); 108 } 109 } 100 110 } 101 111 112 similarityChartHelper.AddPoint(similaritiesArr.Average()); 102 113 chartingHelper.AddPoint(counter / (double)similarities.Length); 103 114 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.