- Timestamp:
- 05/13/19 13:59:30 (6 years ago)
- Location:
- branches/2521_ProblemRefactoring
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring
- Property svn:mergeinfo changed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/ArtificialAnt/Problem.cs
r16813 r16946 130 130 Encoding.Grammar = g; 131 131 base.BestKnownQuality = 89; 132 base.Encoding.GrammarParameter.ReadOnly = true; 132 133 } 133 134 -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/BasicSymbolicRegression/Problem.cs
r16813 r16946 86 86 Encoding.TreeLength = 100; 87 87 Encoding.TreeDepth = 17; 88 Encoding.GrammarParameter.ReadOnly = true; 88 89 89 90 UpdateGrammar(); … … 176 177 } 177 178 179 Encoding.GrammarParameter.ReadOnly = false; 178 180 Encoding.Grammar = g; 181 Encoding.GrammarParameter.ReadOnly = true; 179 182 } 180 183 #endregion -
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) -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/robocode/Problem.cs
r16813 r16946 87 87 Encoding.TreeDepth = 10; 88 88 Encoding.Grammar = new Grammar(); 89 Encoding.GrammarParameter.ReadOnly = true; 89 90 Encoding.FunctionArguments = 0; 90 91 Encoding.FunctionDefinitions = 0;
Note: See TracChangeset
for help on using the changeset viewer.