Changeset 16813 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/robocode/Problem.cs
- Timestamp:
- 04/18/19 13:23:10 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.GeneticProgramming/3.3/robocode/Problem.cs
r16723 r16813 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 { … … 73 73 } 74 74 75 public Problem() 76 : base() { 75 public Problem() : base(new SymbolicExpressionTreeEncoding()) { 77 76 DirectoryValue robocodeDir = new DirectoryValue { Value = @"robocode" }; 78 77 … … 85 84 Parameters.Add(new ValueParameter<EnemyCollection>(EnemiesParameterName, "The enemies that should be battled.", robotList)); 86 85 87 Encoding = new SymbolicExpressionTreeEncoding(new Grammar(), 1000, 10); 86 Encoding.TreeLength = 1000; 87 Encoding.TreeDepth = 10; 88 Encoding.Grammar = new Grammar(); 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.