Changeset 16946 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean
- Timestamp:
- 05/13/19 13:59:30 (6 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean/MultiplexerProblem.cs
r16813 r16946 86 86 new IntValue(11))); 87 87 88 Encoding.TreeLength = 100; 89 Encoding.TreeDepth = 17; 88 var g = new SimpleSymbolicExpressionGrammar(); // will be replaced in update grammar 89 Encoding = new SymbolicExpressionTreeEncoding(g, 100, 17); 90 Encoding.GrammarParameter.ReadOnly = true; 91 90 92 UpdateGrammar(); 91 93 RegisterEventHandlers(); … … 109 111 g.AddTerminalSymbol(string.Format("d{0}", i)); 110 112 113 Encoding.GrammarParameter.ReadOnly = false; 111 114 Encoding.Grammar = g; 115 Encoding.GrammarParameter.ReadOnly = true; 112 116 113 117 BestKnownQuality = Math.Pow(2, NumberOfBits); // this is a benchmark problem (the best achievable quality is known for a given number of bits)
Note: See TracChangeset
for help on using the changeset viewer.