Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/20 14:26:41 (4 years ago)
Author:
mkommend
Message:

#2521: Removed unnecessary default ctors from problem base classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/SingleObjectiveProblem.cs

    r17570 r17610  
    7272      BestKnownQualityParameter = cloner.Clone(original.BestKnownQualityParameter);
    7373      MaximizationParameter = cloner.Clone(original.MaximizationParameter);
    74       Parameterize();
    75       RegisterEventHandlers();
    76     }
    77 
    78     protected SingleObjectiveProblem() : base() {
    79       MaximizationParameter = new ValueParameter<BoolValue>("Maximization", "Whether the problem should be maximized (True) or minimized (False).", new BoolValue(false).AsReadOnly()) { Hidden = true, ReadOnly = true };
    80       BestKnownQualityParameter = new OptionalValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this problem.");
    81 
    82       Parameters.Add(MaximizationParameter);
    83       Parameters.Add(BestKnownQualityParameter);
    84 
    85       Operators.Add(Evaluator);
    86       Operators.Add(new SingleObjectiveAnalyzer<TEncodedSolution>());
    87       Operators.Add(new SingleObjectiveImprover<TEncodedSolution>());
    88       Operators.Add(new SingleObjectiveMoveEvaluator<TEncodedSolution>());
    89       Operators.Add(new SingleObjectiveMoveGenerator<TEncodedSolution>());
    90       Operators.Add(new SingleObjectiveMoveMaker<TEncodedSolution>());
    91 
    9274      Parameterize();
    9375      RegisterEventHandlers();
Note: See TracChangeset for help on using the changeset viewer.