Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/23/20 16:21:55 (4 years ago)
Author:
abeham
Message:

#2521:

  • Moving solution creator parameter from problems to algorithms (breaking wiring in some HeuristicOptimizationProblems)
  • Disallowing evaluator or encoding changes in encoding-specific base problems (to avoid confusion in derived problems whether this needs to be handled or not)
  • Added private set to ReferenceParameter property (serialization)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.GrammaticalEvolution/3.4/SymbolicRegression/GESymbolicDataAnalysisSingleObjectiveProblem.cs

    r17226 r17695  
    2424using System;
    2525using System.Linq;
     26using HEAL.Attic;
    2627using HeuristicLab.Common;
    2728using HeuristicLab.Core;
    2829using HeuristicLab.Data;
    29 using HeuristicLab.Encodings.IntegerVectorEncoding;
    3030using HeuristicLab.Optimization;
    3131using HeuristicLab.Parameters;
    32 using HEAL.Attic;
    3332using HeuristicLab.Problems.DataAnalysis;
    3433using HeuristicLab.Problems.DataAnalysis.Symbolic;
     
    3635namespace HeuristicLab.Problems.GrammaticalEvolution {
    3736  [StorableType("27E01C21-6772-4CE5-8301-EF3102D1BB28")]
    38   public abstract class GESymbolicDataAnalysisSingleObjectiveProblem<T, U, V> : GESymbolicDataAnalysisProblem<T, U, V>,
     37  public abstract class GESymbolicDataAnalysisSingleObjectiveProblem<T, U> : GESymbolicDataAnalysisProblem<T, U>,
    3938                                                                                IGESymbolicDataAnalysisSingleObjectiveProblem
    4039    where T : class, IDataAnalysisProblemData
    41     where U : class, IGESymbolicDataAnalysisSingleObjectiveEvaluator<T>
    42     where V : class, IIntegerVectorCreator {
     40    where U : class, IGESymbolicDataAnalysisSingleObjectiveEvaluator<T> {
    4341    private const string MaximizationParameterName = "Maximization";
    4442    private const string BestKnownQualityParameterName = "BestKnownQuality";
     
    7371    [StorableConstructor]
    7472    protected GESymbolicDataAnalysisSingleObjectiveProblem(StorableConstructorFlag _) : base(_) { }
    75     protected GESymbolicDataAnalysisSingleObjectiveProblem(GESymbolicDataAnalysisSingleObjectiveProblem<T, U, V> original, Cloner cloner)
     73    protected GESymbolicDataAnalysisSingleObjectiveProblem(GESymbolicDataAnalysisSingleObjectiveProblem<T, U> original, Cloner cloner)
    7674      : base(original, cloner) {
    7775      RegisterEventHandler();
     
    7977    }
    8078
    81     public GESymbolicDataAnalysisSingleObjectiveProblem(T problemData, U evaluator, V solutionCreator)
    82       : base(problemData, evaluator, solutionCreator) {
     79    public GESymbolicDataAnalysisSingleObjectiveProblem(T problemData, U evaluator)
     80      : base(problemData, evaluator) {
    8381      Parameters.Add(new FixedValueParameter<BoolValue>(MaximizationParameterName, "Set to false if the problem should be minimized."));
    8482      Parameters.Add(new FixedValueParameter<DoubleValue>(BestKnownQualityParameterName, "The quality of the best known solution of this problem."));
Note: See TracChangeset for help on using the changeset viewer.