- Timestamp:
- 04/09/10 17:28:32 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/ArtificialAntProblem.cs
r3251 r3294 107 107 get { return (ValueParameter<IntValue>)Parameters["MaxExpressionDepth"]; } 108 108 } 109 public ValueParameter<IntValue> MaxFunctionDefinitionsParameter { 110 get { return (ValueParameter<IntValue>)Parameters["MaxFunctionDefinitions"]; } 111 } 112 public ValueParameter<IntValue> MaxFunctionArgumentsParameter { 113 get { return (ValueParameter<IntValue>)Parameters["MaxFunctionArguments"]; } 114 } 109 115 public ValueParameter<BoolMatrix> WorldParameter { 110 116 get { return (ValueParameter<BoolMatrix>)Parameters["World"]; } … … 195 201 Parameters.Add(new ValueParameter<IntValue>("MaxExpressionLength", "Maximal length of the expression to control the artificial ant.", new IntValue(100))); 196 202 Parameters.Add(new ValueParameter<IntValue>("MaxExpressionDepth", "Maximal depth of the expression to control the artificial ant.", new IntValue(10))); 203 Parameters.Add(new ValueParameter<IntValue>("MaxFunctionDefinitions", "Maximal number of automatically defined functions in the expression to control the artificial ant.", new IntValue(3))); 204 Parameters.Add(new ValueParameter<IntValue>("MaxFunctionArguments", "Maximal number of arguments of automatically defined functions in the expression to control the artificial ant.", new IntValue(3))); 197 205 Parameters.Add(new ValueParameter<BoolMatrix>("World", "The world for the artificial ant with scattered food items.", world)); 198 206 Parameters.Add(new ValueParameter<IntValue>("MaxTimeSteps", "The number of time steps the artificial ant has available to collect all food items.", new IntValue(600))); … … 333 341 op.ChildParameter.ActualName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName; 334 342 } 343 foreach (SymbolicExpressionTreeManipulator op in Operators.OfType<SymbolicExpressionTreeManipulator>()) { 344 op.SymbolicExpressionTreeParameter.ActualName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName; 345 } 346 foreach (SymbolicExpressionTreeArchitectureAlteringOperator op in Operators.OfType<SymbolicExpressionTreeArchitectureAlteringOperator>()) { 347 op.MaxFunctionDefiningBranchesParameter.ActualName = MaxFunctionDefinitionsParameter.Name; 348 op.MaxFunctionArgumentsParameter.ActualName = MaxFunctionArgumentsParameter.Name; 349 } 335 350 } 336 351
Note: See TracChangeset
for help on using the changeset viewer.