Changeset 16813 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean/EvenParityProblem.cs
- Timestamp:
- 04/18/19 13:23:10 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean/EvenParityProblem.cs
r16723 r16813 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 28 29 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 29 30 using HeuristicLab.Parameters; 30 using HEAL.Attic;31 31 32 32 … … 78 78 79 79 public EvenParityProblem() 80 : base( ) {80 : base(new SymbolicExpressionTreeEncoding()) { 81 81 Parameters.Add(new FixedValueParameter<IntValue>(NumberOfBitsParameterName, "The number of bits for the input parameter for the even parity function", new IntValue(4))); 82 82 83 var g = new SimpleSymbolicExpressionGrammar(); // will be replaced in update grammar84 Encoding = new SymbolicExpressionTreeEncoding(g, 100, 17);83 Encoding.TreeLength = 100; 84 Encoding.TreeDepth = 17; 85 85 86 86 UpdateGrammar();
Note: See TracChangeset
for help on using the changeset viewer.