Changeset 12341 for branches/SymbolicExpressionTreeEncoding/HeuristicLab.Problems.GrammaticalEvolution/3.3/ArtificialAnt
- Timestamp:
- 04/23/15 16:59:32 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SymbolicExpressionTreeEncoding/HeuristicLab.Problems.GrammaticalEvolution/3.3/ArtificialAnt/GEArtificialAntEvaluator.cs
r12012 r12341 49 49 } 50 50 // phenotype: 51 public ILookupParameter< SymbolicExpressionTree> SymbolicExpressionTreeParameter {52 get { return (ILookupParameter< SymbolicExpressionTree>)Parameters["SymbolicExpressionTree"]; }51 public ILookupParameter<ISymbolicExpressionTree> SymbolicExpressionTreeParameter { 52 get { return (ILookupParameter<ISymbolicExpressionTree>)Parameters["SymbolicExpressionTree"]; } 53 53 } 54 54 public ILookupParameter<BoolMatrix> WorldParameter { … … 84 84 Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the evaluated artificial ant solution.")); 85 85 Parameters.Add(new LookupParameter<IntegerVector>("IntegerVector", "The artificial ant solution encoded as an integer vector genome.")); 86 Parameters.Add(new LookupParameter< SymbolicExpressionTree>("SymbolicExpressionTree", "The artificial ant solution encoded as a symbolic expression tree that should be evaluated"));86 Parameters.Add(new LookupParameter<ISymbolicExpressionTree>("SymbolicExpressionTree", "The artificial ant solution encoded as a symbolic expression tree that should be evaluated")); 87 87 Parameters.Add(new LookupParameter<BoolMatrix>("World", "The world for the artificial ant with scattered food items.")); 88 88 Parameters.Add(new LookupParameter<IntValue>("MaxTimeSteps", "The maximal number of time steps that the artificial ant should be simulated.")); … … 93 93 Parameters.Add(new LookupParameter<IntMatrix>("Bounds", "The integer number range in which the single genomes of a genotype are created.")); 94 94 Parameters.Add(new LookupParameter<IntValue>("MaximumExpressionLength", "Maximal length of the expression to control the artificial ant (genotype length).")); 95 } 96 97 [StorableHook(HookType.AfterDeserialization)] 98 private void AfterDeserialization() { 99 // BackwardsCompatibility3.3 100 #region Backwards compatible code, remove with 3.4 101 102 if (Parameters.ContainsKey("SymbolicExpressionTree") && 103 Parameters["SymbolicExpressionTree"] is ILookupParameter<SymbolicExpressionTree>) { 104 Parameters.Remove("SymbolicExpressionTree"); 105 Parameters.Add(new LookupParameter<ISymbolicExpressionTree>("SymbolicExpressionTree", "The artificial ant solution encoded as a symbolic expression tree that should be evaluated")); 106 } 107 108 #endregion 109 95 110 } 96 111
Note: See TracChangeset
for help on using the changeset viewer.