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.GrammaticalEvolution/3.4/ArtificialAnt/GEArtificialAntProblem.cs

    r16723 r16813  
    2323
    2424using System.Linq;
     25using HEAL.Attic;
    2526using HeuristicLab.Common;
    2627using HeuristicLab.Core;
     
    2930using HeuristicLab.Optimization;
    3031using HeuristicLab.Parameters;
    31 using HEAL.Attic;
    3232using HeuristicLab.Problems.GeneticProgramming.ArtificialAnt;
    3333using HeuristicLab.Problems.GrammaticalEvolution.Mappers;
     
    8585    }
    8686
    87     public GEArtificialAntProblem()
    88       : base() {
     87    public GEArtificialAntProblem() : base(new IntegerVectorEncoding()) {
    8988      wrappedAntProblem = new HeuristicLab.Problems.GeneticProgramming.ArtificialAnt.Problem();
    9089      Parameters.Add(new ValueParameter<BoolMatrix>("World", "The world for the artificial ant with scattered food items.", wrappedAntProblem.World));
     
    9291      Parameters.Add(new ValueParameter<IGenotypeToPhenotypeMapper>("GenotypeToPhenotypeMapper", "Maps the genotype (an integer vector) to the phenotype (a symbolic expression tree).", new DepthFirstMapper()));
    9392
    94       Encoding = new IntegerVectorEncoding(30) { Bounds = new IntMatrix(new int[,] { { 0, 100 } }) };
     93      Encoding.Length = 30;
     94      Encoding.Bounds = new IntMatrix(new int[,] { { 0, 100 } });
    9595
    9696      BestKnownQuality = wrappedAntProblem.BestKnownQuality;
Note: See TracChangeset for help on using the changeset viewer.