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/Problem.cs

    r17570 r17610  
    101101    }
    102102
    103     protected Problem()
    104       : base() {
    105       Parameters.Add(new ValueParameter<TEncoding>("Encoding", "Describes the configuration of the encoding, what the variables are called, what type they are and their bounds if any.") { Hidden = true });
    106       Parameters.Add(new ValueParameter<TEvaluator>("Evaluator", "The operator used to evaluate a solution.") { Hidden = true });
    107 
    108       if (Encoding != null) {
    109         oldEncoding = Encoding;
    110         Parameterize();
    111       }
    112       RegisterEvents();
    113     }
    114     protected Problem(TEncoding encoding) {
     103    protected Problem(TEncoding encoding) : base() {
    115104      if (encoding == null) throw new ArgumentNullException("encoding");
    116105      Parameters.Add(new ValueParameter<TEncoding>("Encoding", "Describes the configuration of the encoding, what the variables are called, what type they are and their bounds if any.", encoding) { Hidden = true });
Note: See TracChangeset for help on using the changeset viewer.