Changeset 16947 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean
- Timestamp:
- 05/13/19 15:16:40 (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
r16813 r16947 96 96 g.AddTerminalSymbol(string.Format("{0}", i)); 97 97 98 Encoding.GrammarParameter.ReadOnly = false; 98 99 Encoding.Grammar = g; 100 Encoding.GrammarParameter.ReadOnly = true; 99 101 102 BestKnownQualityParameter.ReadOnly = false; 100 103 BestKnownQuality = Math.Pow(2, NumberOfBits); // this is a benchmark problem (the best achievable quality is known for a given number of bits) 104 BestKnownQualityParameter.ReadOnly = true; 101 105 } 102 106 -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean/MultiplexerProblem.cs
r16946 r16947 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 Encoding.GrammarParameter.ReadOnly = true; 88 Encoding.TreeLength = 100; 89 Encoding.TreeDepth = 17; 91 90 92 91 UpdateGrammar(); … … 115 114 Encoding.GrammarParameter.ReadOnly = true; 116 115 116 BestKnownQualityParameter.ReadOnly = false; 117 117 BestKnownQuality = Math.Pow(2, NumberOfBits); // this is a benchmark problem (the best achievable quality is known for a given number of bits) 118 BestKnownQualityParameter.ReadOnly = true; 118 119 } 119 120
Note: See TracChangeset
for help on using the changeset viewer.