Changeset 16813 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean
- Timestamp:
- 04/18/19 13:23:10 (6 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean
- Files:
-
- 2 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(); -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean/MultiplexerProblem.cs
r16723 r16813 24 24 using System.Diagnostics.Contracts; 25 25 using System.Linq; 26 using HEAL.Attic; 26 27 using HeuristicLab.Common; 27 28 using HeuristicLab.Core; … … 29 30 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 30 31 using HeuristicLab.Parameters; 31 using HEAL.Attic;32 32 33 33 … … 81 81 82 82 public MultiplexerProblem() 83 : base( ) {83 : base(new SymbolicExpressionTreeEncoding()) { 84 84 Parameters.Add(new FixedValueParameter<IntValue>(NumberOfBitsParameterName, 85 85 "The number of bits for the input parameter for the multiplexer function. This is the sum of the number of address bits and the number of input lines. E.g. the 11-MUX has 3 address bits and 8 input lines", 86 86 new IntValue(11))); 87 87 88 var g = new SimpleSymbolicExpressionGrammar(); // will be replaced in update grammar 89 Encoding = new SymbolicExpressionTreeEncoding(g, 100, 17); 90 88 Encoding.TreeLength = 100; 89 Encoding.TreeDepth = 17; 91 90 UpdateGrammar(); 92 91 RegisterEventHandlers();
Note: See TracChangeset
for help on using the changeset viewer.