Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/18/19 13:23:10 (5 years ago)
Author:
mkommend
Message:

#2521: Changed base ctor call in all GeneticProgrammingProblems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean/EvenParityProblem.cs

    r16723 r16813  
    2323using System.Collections.Generic;
    2424using System.Linq;
     25using HEAL.Attic;
    2526using HeuristicLab.Common;
    2627using HeuristicLab.Core;
     
    2829using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2930using HeuristicLab.Parameters;
    30 using HEAL.Attic;
    3131
    3232
     
    7878
    7979    public EvenParityProblem()
    80       : base() {
     80      : base(new SymbolicExpressionTreeEncoding()) {
    8181      Parameters.Add(new FixedValueParameter<IntValue>(NumberOfBitsParameterName, "The number of bits for the input parameter for the even parity function", new IntValue(4)));
    8282
    83       var g = new SimpleSymbolicExpressionGrammar(); // will be replaced in update grammar
    84       Encoding = new SymbolicExpressionTreeEncoding(g, 100, 17);
     83      Encoding.TreeLength = 100;
     84      Encoding.TreeDepth = 17;
    8585
    8686      UpdateGrammar();
Note: See TracChangeset for help on using the changeset viewer.