Changeset 16892 for branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.GeneticProgramming
- Timestamp:
- 05/04/19 08:22:42 (6 years ago)
- Location:
- branches/2925_AutoDiffForDynamicalModels
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2925_AutoDiffForDynamicalModels
- Property svn:mergeinfo changed
-
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.GeneticProgramming/3.3/ArtificialAnt/Problem.cs
r16662 r16892 23 23 using System.Diagnostics.Contracts; 24 24 using System.Linq; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 29 30 using HeuristicLab.Optimization; 30 31 using HeuristicLab.Parameters; 31 using HEAL.Attic;32 32 33 33 … … 128 128 g.AddTerminalSymbols(new string[] { "Move", "Left", "Right" }); 129 129 base.Encoding = new SymbolicExpressionTreeEncoding(g, 20, 10); 130 base.Encoding.GrammarParameter.ReadOnly = true; 130 131 } 131 132 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.GeneticProgramming/3.3/BasicSymbolicRegression/Problem.cs
r16662 r16892 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; 27 28 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 28 29 using HeuristicLab.Parameters; 29 using HEAL.Attic;30 30 using HeuristicLab.Problems.DataAnalysis; 31 31 using HeuristicLab.Problems.Instances; … … 87 87 var g = new SimpleSymbolicExpressionGrammar(); // empty grammar is replaced in UpdateGrammar() 88 88 base.Encoding = new SymbolicExpressionTreeEncoding(g, 100, 17); 89 Encoding.GrammarParameter.ReadOnly = true; 89 90 90 91 UpdateGrammar(); … … 177 178 } 178 179 180 Encoding.GrammarParameter.ReadOnly = false; 179 181 Encoding.Grammar = g; 182 Encoding.GrammarParameter.ReadOnly = true; 180 183 } 181 184 #endregion -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean/EvenParityProblem.cs
r16662 r16892 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 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.GeneticProgramming/3.3/Boolean/MultiplexerProblem.cs
r16662 r16892 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 … … 88 88 var g = new SimpleSymbolicExpressionGrammar(); // will be replaced in update grammar 89 89 Encoding = new SymbolicExpressionTreeEncoding(g, 100, 17); 90 Encoding.GrammarParameter.ReadOnly = true; 90 91 91 92 UpdateGrammar(); … … 110 111 g.AddTerminalSymbol(string.Format("d{0}", i)); 111 112 113 Encoding.GrammarParameter.ReadOnly = false; 112 114 Encoding.Grammar = g; 115 Encoding.GrammarParameter.ReadOnly = true; 113 116 114 117 BestKnownQuality = Math.Pow(2, NumberOfBits); // this is a benchmark problem (the best achievable quality is known for a given number of bits) -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.GeneticProgramming/3.3/robocode/Problem.cs
r16662 r16892 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 26 27 using HeuristicLab.Optimization; 27 28 using HeuristicLab.Parameters; 28 using HEAL.Attic;29 29 30 30 namespace HeuristicLab.Problems.GeneticProgramming.Robocode { … … 86 86 87 87 Encoding = new SymbolicExpressionTreeEncoding(new Grammar(), 1000, 10); 88 Encoding.GrammarParameter.ReadOnly = true; 88 89 Encoding.FunctionArguments = 0; 89 90 Encoding.FunctionDefinitions = 0; … … 134 135 } 135 136 136 void RobocodePathParameter_ValueChanged(object sender, System.EventArgs e) {137 private void RobocodePathParameter_ValueChanged(object sender, System.EventArgs e) { 137 138 EnemiesParameter.Value.RobocodePath = RobocodePathParameter.Value.Value; 138 139 }
Note: See TracChangeset
for help on using the changeset viewer.