Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/18/19 13:23:10 (6 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/LawnMower/Problem.cs

    r16723 r16813  
    2222using System;
    2323using System.Linq;
     24using HEAL.Attic;
    2425using HeuristicLab.Common;
    2526using HeuristicLab.Core;
     
    2829using HeuristicLab.Optimization;
    2930using HeuristicLab.Parameters;
    30 using HEAL.Attic;
    3131using HeuristicLab.Random;
    3232
     
    6262    #endregion
    6363
    64     public Problem()
    65       : base() {
     64    public Problem() : base(new SymbolicExpressionTreeEncoding()) {
    6665      Parameters.Add(new FixedValueParameter<IntValue>(LawnWidthParameterName, "Width of the lawn.", new IntValue(8)));
    6766      Parameters.Add(new FixedValueParameter<IntValue>(LawnLengthParameterName, "Length of the lawn.", new IntValue(8)));
     
    7776      }
    7877
    79       Encoding = new SymbolicExpressionTreeEncoding(g, 1000, 17);
     78      Encoding.TreeLength = 1000;
     79      Encoding.TreeDepth = 17;
     80      Encoding.Grammar = g;
    8081    }
    8182
Note: See TracChangeset for help on using the changeset viewer.