- Timestamp:
- 12/12/14 20:50:13 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Parameter-less Population Pyramid/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/ParameterlessPopulationPyramid.cs
r11672 r11681 47 47 // Tracks all solutions in Pyramid for quick membership checks 48 48 private HashSet<bool[]> seen = new HashSet<bool[]>(new EnumerableBoolEqualityComparer()); 49 49 50 50 #region ParameterNames 51 51 private const string MaximumIterationsParameterName = "Maximum Iterations"; … … 54 54 private const string SetSeedRandomlyParameterName = "SetSeedRandomly"; 55 55 #endregion 56 56 57 57 #region ParameterProperties 58 58 public IFixedValueParameter<IntValue> MaximumIterationsParameter { … … 126 126 private DataRow ResultsQualitiesIteration { 127 127 get { return ResultsQualities.Rows["Iteration Quality"]; } 128 } 129 130 131 private DataRow ResultsLevels { 132 get { return ((DataTable)Results["Pyramid Levels"].Value).Rows["Levels"]; } 133 } 134 135 private DataRow ResultsSolutions { 136 get { return ((DataTable)Results["Stored Solutions"].Value).Rows["Solutions"]; } 128 137 } 129 138 #endregion … … 202 211 Results.Add(new Result("Qualities", table)); 203 212 213 table = new DataTable("Pyramid Levels"); 214 table.Rows.Add(new DataRow("Levels")); 215 Results.Add(new Result("Pyramid Levels", table)); 216 217 table = new DataTable("Stored Solutions"); 218 table.Rows.Add(new DataRow("Solutions")); 219 Results.Add(new Result("Stored Solutions", table)); 220 204 221 // Loop until iteration limit reached or canceled. 205 222 for (ResultsIterations = 0; ResultsIterations < MaximumIterations; ResultsIterations++) { … … 219 236 ResultsQualitiesBest.Values.Add(tracker.BestQuality); 220 237 ResultsQualitiesIteration.Values.Add(fitness); 238 ResultsLevels.Values.Add(pyramid.Count); 239 ResultsSolutions.Values.Add(seen.Count); 221 240 } 222 241 }
Note: See TracChangeset
for help on using the changeset viewer.