Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/26/19 10:02:47 (5 years ago)
Author:
abeham
Message:

#2521: worked on removing virtual from Maximization for single-objective problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs

    r17226 r17270  
    4040    IProblemInstanceConsumer<SOTFData> {
    4141
    42     public override bool Maximization {
    43       get { return Parameters.ContainsKey("TestFunction") && TestFunction.Maximization; }
    44     }
    45 
    4642    #region Parameter Properties
    4743    private IFixedValueParameter<IntValue> ProblemSizeParameter {
     
    8682      Parameters.Add(new OptionalValueParameter<RealVector>("BestKnownSolution", "The best known solution for this test function instance."));
    8783      Parameters.Add(new ValueParameter<ISingleObjectiveTestFunction>("TestFunction", "The function that is to be optimized.", new Ackley()));
     84      Maximization = TestFunction.Maximization;
    8885
    8986      Encoding.LengthParameter = ProblemSizeParameter;
     
    170167      var bestSolution = TestFunction.GetBestKnownSolution(ProblemSize);
    171168      BestKnownSolutionParameter.Value = bestSolution;
     169      Maximization = TestFunction.Maximization;
    172170
    173171      OnReset();
Note: See TracChangeset for help on using the changeset viewer.