Changeset 17747 for branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3
- Timestamp:
- 09/15/20 17:09:10 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/HillClimber.cs
r17745 r17747 94 94 Parameters.Add(MaximumIterationsParameter = new FixedValueParameter<IntValue>("Maximum Iterations", "", new IntValue(100))); 95 95 96 Results.Add(BestQualityResult = new Result<DoubleValue>("Best Quality" ));97 Results.Add(IterationsResult = new Result<IntValue>("Iterations" ));96 Results.Add(BestQualityResult = new Result<DoubleValue>("Best Quality", "The best quality found so far.")); 97 Results.Add(IterationsResult = new Result<IntValue>("Iterations", "The current iteration.")); 98 98 } 99 99 -
branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/ParameterlessPopulationPyramid.cs
r17680 r17747 229 229 // Set up the results display 230 230 if (!Results.TryGetValue("Iterations", out var result)) 231 Results.Add(new Result("Iterations", resultsIterations = new IntValue(0)));231 Results.Add(new Result("Iterations", "The current iteration.", resultsIterations = new IntValue(0))); 232 232 else result.Value = resultsIterations = new IntValue(0); 233 233 if (!Results.TryGetValue("Evaluations", out var result2)) 234 Results.Add(new Result("Evaluations", resultsEvaluations = new IntValue(0)));234 Results.Add(new Result("Evaluations", "The number of evaluations that have been performed.", resultsEvaluations = new IntValue(0))); 235 235 else result2.Value = resultsEvaluations = new IntValue(0); 236 236 if (!Results.TryGetValue("Best Quality", out var result4)) 237 Results.Add(new Result("Best Quality", resultsBestQuality = new DoubleValue(tracker.BestQuality)));237 Results.Add(new Result("Best Quality", "The best quality that has been observed so far.", resultsBestQuality = new DoubleValue(tracker.BestQuality))); 238 238 else result4.Value = resultsBestQuality = new DoubleValue(tracker.BestQuality); 239 239 if (!Results.TryGetValue("Evaluation Best Solution Was Found", out var result5)) 240 Results.Add(new Result("Evaluation Best Solution Was Found", resultsBestFoundOnEvaluation = new IntValue(tracker.BestFoundOnEvaluation)));240 Results.Add(new Result("Evaluation Best Solution Was Found", "The number of evaluations at which the best solution was found.", resultsBestFoundOnEvaluation = new IntValue(tracker.BestFoundOnEvaluation))); 241 241 else result5.Value = resultsBestFoundOnEvaluation = new IntValue(tracker.BestFoundOnEvaluation); 242 242 var table = new DataTable("Qualities"); … … 245 245 ResultsQualitiesIteration.VisualProperties.LineStyle = DataRowVisualProperties.DataRowLineStyle.Dot; 246 246 if (!Results.TryGetValue("Qualities", out var result6)) 247 Results.Add(new Result("Qualities", table));247 Results.Add(new Result("Qualities", "An analysis of the quality progress over time.", table)); 248 248 else result6.Value = table; 249 249 … … 251 251 table.Rows.Add(ResultsLevels = new DataRow("Levels")); 252 252 if (!Results.TryGetValue("Pyramid Levels", out var result7)) 253 Results.Add(new Result("Pyramid Levels", table));253 Results.Add(new Result("Pyramid Levels", "The number of levels of the pyramid.", table)); 254 254 else result7.Value = table; 255 255 … … 257 257 table.Rows.Add(ResultsSolutions = new DataRow("Solutions")); 258 258 if (!Results.TryGetValue("Stored Solutions", out var result8)) 259 Results.Add(new Result("Stored Solutions", table));259 Results.Add(new Result("Stored Solutions", "The number of solutions that are found over time.", table)); 260 260 else result8.Value = table; 261 261
Note: See TracChangeset
for help on using the changeset viewer.