- Timestamp:
- 04/18/19 13:23:10 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GrammaticalEvolution/3.4/ArtificialAnt/GEArtificialAntProblem.cs
r16723 r16813 23 23 24 24 using System.Linq; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 29 30 using HeuristicLab.Optimization; 30 31 using HeuristicLab.Parameters; 31 using HEAL.Attic;32 32 using HeuristicLab.Problems.GeneticProgramming.ArtificialAnt; 33 33 using HeuristicLab.Problems.GrammaticalEvolution.Mappers; … … 85 85 } 86 86 87 public GEArtificialAntProblem() 88 : base() { 87 public GEArtificialAntProblem() : base(new IntegerVectorEncoding()) { 89 88 wrappedAntProblem = new HeuristicLab.Problems.GeneticProgramming.ArtificialAnt.Problem(); 90 89 Parameters.Add(new ValueParameter<BoolMatrix>("World", "The world for the artificial ant with scattered food items.", wrappedAntProblem.World)); … … 92 91 Parameters.Add(new ValueParameter<IGenotypeToPhenotypeMapper>("GenotypeToPhenotypeMapper", "Maps the genotype (an integer vector) to the phenotype (a symbolic expression tree).", new DepthFirstMapper())); 93 92 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 } }); 95 95 96 96 BestKnownQuality = wrappedAntProblem.BestKnownQuality;
Note: See TracChangeset
for help on using the changeset viewer.