Changeset 10022 for branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution/GEArtificialAntProblem.cs
- Timestamp:
- 10/03/13 22:47:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution/GEArtificialAntProblem.cs
r10012 r10022 86 86 get { return (IValueParameter<IntValue>)Parameters["MaximumExpressionLength"]; } 87 87 } 88 public IValueParameter<IntValue> MaxExpressionDepthParameter {89 get { return (IValueParameter<IntValue>)Parameters["MaximumExpressionDepth"]; }90 }91 88 public IValueParameter<IntValue> MaxFunctionDefinitionsParameter { 92 89 get { return (IValueParameter<IntValue>)Parameters["MaximumFunctionDefinitions"]; } … … 104 101 get { return (IValueParameter<IntMatrix>)Parameters["Bounds"]; } 105 102 } 106 107 103 #endregion 108 104 … … 119 115 get { return MaxExpressionLengthParameter.Value; } 120 116 set { MaxExpressionLengthParameter.Value = value; } 121 }122 public IntValue MaxExpressionDepth {123 get { return MaxExpressionDepthParameter.Value; }124 set { MaxExpressionDepthParameter.Value = value; }125 117 } 126 118 public IntValue MaxFunctionDefinitions { … … 174 166 : base(new GEEvaluator(), new UniformRandomIntegerVectorCreator()) { 175 167 BoolMatrix world = new BoolMatrix(santaFeAntTrail); 176 Parameters.Add(new ValueParameter<IntValue>("MaximumExpressionLength", "Maximal length of the expression to control the artificial ant.", new IntValue(100))); 177 Parameters.Add(new ValueParameter<IntValue>("MaximumExpressionDepth", "Maximal depth of the expression to control the artificial ant.", new IntValue(10))); 168 Parameters.Add(new ValueParameter<IntValue>("MaximumExpressionLength", "Maximal length of the expression to control the artificial ant.", new IntValue(30))); 178 169 Parameters.Add(new ValueParameter<IntValue>("MaximumFunctionDefinitions", "Maximal number of automatically defined functions in the expression to control the artificial ant.", new IntValue(3))); 179 170 Parameters.Add(new ValueParameter<IntValue>("MaximumFunctionArguments", "Maximal number of arguments of automatically defined functions in the expression to control the artificial ant.", new IntValue(3))); … … 181 172 Parameters.Add(new ValueParameter<BoolMatrix>("World", "The world for the artificial ant with scattered food items.", world)); 182 173 Parameters.Add(new ValueParameter<IntValue>("MaximumTimeSteps", "The number of time steps the artificial ant has available to collect all food items.", new IntValue(600))); 183 IntMatrix m = new IntMatrix(1,2); 184 m[0,0] = 1; 185 m[0,1] = 10; 186 Parameters.Add(new ValueParameter<IntMatrix>("Bounds", "", m)); 174 IntMatrix m = new IntMatrix(new int[,]{{0,100}}); 175 Parameters.Add(new ValueParameter<IntMatrix>("Bounds", "The integer number range in which the single genomes of a genotype are created.", m)); 187 176 188 177 Maximization.Value = true;
Note: See TracChangeset
for help on using the changeset viewer.