Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6813


Ignore:
Timestamp:
09/21/11 09:13:41 (13 years ago)
Author:
gkronber
Message:

#1479 corrected number of allowed subtrees of IfFoodAhead symbol

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  
    5050      var left = new Left();
    5151      var right = new Right();
    52       var defun = new Defun();
    5352      var allSymbols = new List<Symbol>() { ifFoodAhead, prog2, prog3, move, left, right };
    5453      var nonTerminalSymbols = new List<Symbol>() { ifFoodAhead, prog2, prog3 };
    5554
    5655      allSymbols.ForEach(s => AddSymbol(s));
    57       SetSubtreeCount(ifFoodAhead, 2, 3);
     56      SetSubtreeCount(ifFoodAhead, 2, 2);
    5857      SetSubtreeCount(prog2, 2, 2);
    5958      SetSubtreeCount(prog3, 3, 3);
  • trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.4/Symbols/IfFoodAhead.cs

    r6803 r6813  
    2929  public sealed class IfFoodAhead : Symbol {
    3030    private const int minimumArity = 2;
    31     private const int maximumArity = 3;
     31    private const int maximumArity = 2;
    3232
    3333    public override int MinimumArity {
Note: See TracChangeset for help on using the changeset viewer.