Free cookie consent management tool by TermsFeed Policy Generator

Changeset 18177 for branches


Ignore:
Timestamp:
01/03/22 16:37:23 (3 years ago)
Author:
gkronber
Message:

#3136: removed a special case from the Evaluate method because it can never be true (maximization is fixed to false).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/StructuredSymbolicRegressionSingleObjectiveProblem.cs

    r18162 r18177  
    199199      var tree = BuildTree(individual);
    200200
    201       if (StructureTemplate.ApplyLinearScaling)
     201      if (StructureTemplate.ApplyLinearScaling) {
    202202        AdjustLinearScalingParams(ProblemData, tree, Interpreter);
     203      }
    203204
    204205      individual[SymbolicExpressionTreeName] = tree;
    205 
    206       // dpiringe: needed when Maximization = true
    207       if (TreeEvaluatorParameter.Value is SymbolicRegressionParameterOptimizationEvaluator constantOptEvaluator) {
    208         constantOptEvaluator.RandomParameter.Value = random;
    209         constantOptEvaluator.RelativeNumberOfEvaluatedSamplesParameter.Value =
    210           (PercentValue)constantOptEvaluator.ParameterOptimizationRowsPercentage.Clone();
    211       }
    212206
    213207      return TreeEvaluatorParameter.Value.Evaluate(
Note: See TracChangeset for help on using the changeset viewer.