Changeset 16813 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/LawnMower
- Timestamp:
- 04/18/19 13:23:10 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/LawnMower/Problem.cs
r16723 r16813 22 22 using System; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; … … 28 29 using HeuristicLab.Optimization; 29 30 using HeuristicLab.Parameters; 30 using HEAL.Attic;31 31 using HeuristicLab.Random; 32 32 … … 62 62 #endregion 63 63 64 public Problem() 65 : base() { 64 public Problem() : base(new SymbolicExpressionTreeEncoding()) { 66 65 Parameters.Add(new FixedValueParameter<IntValue>(LawnWidthParameterName, "Width of the lawn.", new IntValue(8))); 67 66 Parameters.Add(new FixedValueParameter<IntValue>(LawnLengthParameterName, "Length of the lawn.", new IntValue(8))); … … 77 76 } 78 77 79 Encoding = new SymbolicExpressionTreeEncoding(g, 1000, 17); 78 Encoding.TreeLength = 1000; 79 Encoding.TreeDepth = 17; 80 Encoding.Grammar = g; 80 81 } 81 82
Note: See TracChangeset
for help on using the changeset viewer.