Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/15/20 17:09:10 (4 years ago)
Author:
abeham
Message:

#2521: worked on refactoring

  • add results to problem base classes
  • fix external evaluation problem
  • Add result descriptions
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  
    9494      Parameters.Add(MaximumIterationsParameter = new FixedValueParameter<IntValue>("Maximum Iterations", "", new IntValue(100)));
    9595
    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."));
    9898    }
    9999
  • branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.ParameterlessPopulationPyramid/3.3/ParameterlessPopulationPyramid.cs

    r17680 r17747  
    229229      // Set up the results display
    230230      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)));
    232232      else result.Value = resultsIterations = new IntValue(0);
    233233      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)));
    235235      else result2.Value = resultsEvaluations = new IntValue(0);
    236236      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)));
    238238      else result4.Value = resultsBestQuality = new DoubleValue(tracker.BestQuality);
    239239      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)));
    241241      else result5.Value = resultsBestFoundOnEvaluation = new IntValue(tracker.BestFoundOnEvaluation);
    242242      var table = new DataTable("Qualities");
     
    245245      ResultsQualitiesIteration.VisualProperties.LineStyle = DataRowVisualProperties.DataRowLineStyle.Dot;
    246246      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));
    248248      else result6.Value = table;
    249249
     
    251251      table.Rows.Add(ResultsLevels = new DataRow("Levels"));
    252252      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));
    254254      else result7.Value = table;
    255255
     
    257257      table.Rows.Add(ResultsSolutions = new DataRow("Solutions"));
    258258      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));
    260260      else result8.Value = table;
    261261
Note: See TracChangeset for help on using the changeset viewer.