Changeset 3251 for trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3
- Timestamp:
- 04/01/10 20:44:56 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/ArtificialAntExpressionGrammar.cs
r3238 r3251 26 26 using System.Linq; 27 27 using HeuristicLab.Core; 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 29 namespace HeuristicLab.Problems.ArtificialAnt { 30 [StorableClass] 29 31 public class ArtificialAntExpressionGrammar : Item, ISymbolicExpressionGrammar { 30 32 … … 36 38 #region ISymbolicExpressionGrammar Members 37 39 40 [Storable] 38 41 private EmptySymbol startSymbol = new EmptySymbol(); 39 42 public Symbol StartSymbol { … … 41 44 } 42 45 46 [Storable] 43 47 private static List<Symbol> allSymbols = new List<Symbol>() { 44 48 new IfFoodAhead(), … … 49 53 new Right() 50 54 }; 55 [Storable] 51 56 private Dictionary<Type, Dictionary<int, IEnumerable<Symbol>>> allowedSymbols = new Dictionary<Type, Dictionary<int, IEnumerable<Symbol>>>() { 52 57 { … … 86 91 } 87 92 93 [Storable] 88 94 private Dictionary<Type, int> minLength = new Dictionary<Type, int>() { 89 95 {typeof(EmptySymbol), 1}, … … 99 105 } 100 106 107 [Storable] 101 108 private Dictionary<Type, int> maxLength = new Dictionary<Type, int>() { 102 109 {typeof(EmptySymbol), int.MaxValue}, … … 112 119 } 113 120 121 [Storable] 114 122 private Dictionary<Type, int> minDepth = new Dictionary<Type, int>() { 115 123 {typeof(EmptySymbol), 1}, … … 126 134 127 135 136 [Storable] 128 137 private Dictionary<Type, int> subTrees = new Dictionary<Type, int>() { 129 138 {typeof(EmptySymbol), 1}, -
trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/ArtificialAntProblem.cs
r3245 r3251 191 191 Parameters.Add(new ValueParameter<SymbolicExpressionTreeCreator>("SolutionCreator", "The operator which should be used to create new artificial ant solutions.", creator)); 192 192 Parameters.Add(new ValueParameter<Evaluator>("Evaluator", "The operator which should be used to evaluate artificial ant solutions.", evaluator)); 193 Parameters.Add(new ValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this OneMaxinstance.", new DoubleValue(89)));193 Parameters.Add(new ValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this artificial ant instance.", new DoubleValue(89))); 194 194 Parameters.Add(new ValueParameter<ISymbolicExpressionGrammar>("ArtificialAntExpressionGrammar", "The grammar that should be used for artificial ant expressions.", grammar)); 195 195 Parameters.Add(new ValueParameter<IntValue>("MaxExpressionLength", "Maximal length of the expression to control the artificial ant.", new IntValue(100)));
Note: See TracChangeset
for help on using the changeset viewer.