- Timestamp:
- 01/30/15 15:04:20 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VOSGA/HeuristicLab.Algorithms.VOffspringSelectionGeneticAlgorithm/WeightedParentsDiversityComparator.cs
r11824 r11841 79 79 private const string divDataRowName = "DiversitySuccessCount"; 80 80 private const string qualityDataRowName = "QualitySuccessCount"; 81 private const string divFailDataRowName = "DiversityFailCount"; 82 private const string qualityFailDataRowName = "QualityFailCount"; 81 83 private const string overallCountDataRowName = "OverallCount"; 82 84 private const string successCountDataRowName = "SuccessCount"; … … 88 90 [Storable] 89 91 private int qualityCount; 92 [Storable] 93 private int badQualityCount; 94 [Storable] 95 private int badDivCount; 90 96 [Storable] 91 97 private int overallCount; … … 103 109 overallCount = original.overallCount; 104 110 successCount = original.successCount; 111 badDivCount = original.badDivCount; 112 badQualityCount = original.badQualityCount; 105 113 } 106 114 public WeightedParentsDiversityComparator() … … 171 179 spDetailsTable.Rows.Add(new DataRow(overallCountDataRowName)); 172 180 spDetailsTable.Rows.Add(new DataRow(successCountDataRowName)); 181 spDetailsTable.Rows.Add(new DataRow(divFailDataRowName)); 182 spDetailsTable.Rows.Add(new DataRow(qualityFailDataRowName)); 173 183 ResultsParameter.ActualValue.Add(new Result(spDetailsParameterName, spDetailsTable)); 174 184 } … … 183 193 spDetailsTable.Rows[successCountDataRowName].Values.Add(successCount); 184 194 successCount = 0; 195 spDetailsTable.Rows[qualityFailDataRowName].Values.Add(badQualityCount); 196 badQualityCount = 0; 197 spDetailsTable.Rows[divFailDataRowName].Values.Add(badDivCount); 198 badDivCount = 0; 185 199 currentGeneration = GenerationsParameter.ActualValue.Value; 186 200 } … … 212 226 if (result) { 213 227 qualityCount++; 228 } else { 229 badQualityCount++; 214 230 } 215 231 if (resultDiversity) { 216 232 divCount++; 233 } else { 234 badDivCount++; 217 235 } 218 236 if (result && resultDiversity) {
Note: See TracChangeset
for help on using the changeset viewer.