Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/15/15 10:34:33 (9 years ago)
Author:
gkronber
Message:

optimal artificial ant solutions

Location:
branches/HeuristicLab.Problems.GrammaticalOptimization
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization/Test/TestInstances.cs

    r11865 r12763  
    143143      Console.WriteLine(p.Grammar);
    144144
    145       // one possible optimal solution: if-food-ahead (move) ( left left if-food-ahead (move) (right)) move right
     145      // all possible minimal solutions to the artificial ant problem
    146146      Assert.AreEqual(89, p.Evaluate("?(m)(ll?(m)(r))mr"));
     147      Assert.AreEqual(89, p.Evaluate("?(m)(rr?(m)(l))ml"));
     148      Assert.AreEqual(89, p.Evaluate("r?(m)(ll?(m)(r))m"));
     149      Assert.AreEqual(89, p.Evaluate("l?(m)(rr?(m)(l))m"));
     150      Assert.AreEqual(89, p.Evaluate("mr?(m)(ll?(m)(r))"));
     151      Assert.AreEqual(89, p.Evaluate("ml?(m)(rr?(m)(l))"));
     152      Assert.AreEqual(89, p.Evaluate("?(m)(ll?(m)(l))ml"));
     153      Assert.AreEqual(89, p.Evaluate("?(m)(rr?(m)(r))mr"));
     154      Assert.AreEqual(89, p.Evaluate("l?(m)(ll?(m)(l))m"));
     155      Assert.AreEqual(89, p.Evaluate("r?(m)(rr?(m)(r))m"));
     156      Assert.AreEqual(89, p.Evaluate("ml?(m)(ll?(m)(l))"));
     157      Assert.AreEqual(89, p.Evaluate("mr?(m)(rr?(m)(r))"));
    147158    }
    148159
Note: See TracChangeset for help on using the changeset viewer.