Changeset 6813
- Timestamp:
- 09/21/11 09:13:41 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.4/ArtificialAntExpressionGrammar.cs
r5809 r6813 50 50 var left = new Left(); 51 51 var right = new Right(); 52 var defun = new Defun();53 52 var allSymbols = new List<Symbol>() { ifFoodAhead, prog2, prog3, move, left, right }; 54 53 var nonTerminalSymbols = new List<Symbol>() { ifFoodAhead, prog2, prog3 }; 55 54 56 55 allSymbols.ForEach(s => AddSymbol(s)); 57 SetSubtreeCount(ifFoodAhead, 2, 3);56 SetSubtreeCount(ifFoodAhead, 2, 2); 58 57 SetSubtreeCount(prog2, 2, 2); 59 58 SetSubtreeCount(prog3, 3, 3); -
trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.4/Symbols/IfFoodAhead.cs
r6803 r6813 29 29 public sealed class IfFoodAhead : Symbol { 30 30 private const int minimumArity = 2; 31 private const int maximumArity = 3;31 private const int maximumArity = 2; 32 32 33 33 public override int MinimumArity {
Note: See TracChangeset
for help on using the changeset viewer.