Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8426


Ignore:
Timestamp:
08/07/12 15:35:05 (12 years ago)
Author:
spimming
Message:

#1894 various error fixed

Location:
branches/RoutePlanning
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/RoutePlanning/HeuristicLab.Algorithms.GraphRouting/3.3/AStarAlgorithmV2.cs

    r8408 r8426  
    3636
    3737      while (openList.Count > 0) {
    38         NodeData data = openList.Max;
     38        NodeData data = openList.Min;
    3939        openList.Remove(data);
    4040        openListLookup.Remove(data.Node);
  • branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning.Test/Program.cs

    r8423 r8426  
    2222      string file6 = @"C:\dev\osmfiles\oberosterreich.highway.osm";
    2323
    24       //TestD(file5, 529102170, 1001363194, true, false); // inz - inz
    25       //Test(file5, 529102170, 1001363194, true, false); // inz - inz
    26       //Test(file6, 529102170, 1001363194, true, false); // inz - inz
    27 
    28       //IDataSource ds = TestLoad(file6);
    29       //Graph.Graph graph = new Graph.Graph(ds);
    30       //TestRouter(new AStarAlgorithm(graph), 529102170, 31372732, false); // inz - hgb
    31       //TestRouter(new AStarAlgorithmV2(graph), 529102170, 31372732, false); // inz - hgb
     24      IDataSource ds = TestLoad(file6);
     25      Graph.Graph graph = new Graph.Graph(ds);
     26      TestRouter(new DijkstraAlgorithm(graph), 529102170, 31372732, false); // inz - hgb
     27      TestRouter(new AStarAlgorithm(graph), 529102170, 31372732, false); // inz - hgb
     28      TestRouter(new AStarAlgorithmV2(graph), 529102170, 31372732, false); // inz - hgb
     29      TestRouter(new BidrectionalDijkstraAlgorithm(graph), 529102170, 31372732, false); // inz - hgb
    3230
    3331      //TestLoadAndRouter(file6, typeof(DijkstraAlgorithm), 529102170, 31372732, false, false); // inz - hgb
    3432      //TestLoadAndRouter(file6, typeof(AStarAlgorithm), 529102170, 31372732, false, false); // inz - hgb
    35       //TestLoadAndRouter(file6, typeof(AStarAlgorithmV2), 529102170, 31372732, false, false); // inz - hgb
     33      //TestLoadAndRouter(file6, typeof(AStarAlgorithmV2), 529102170, 31372732, false, true); // inz - hgb
     34
     35      //TestLoadAndRouter(file6, typeof(DijkstraAlgorithm), 529102170, 1001363194, true, false);
     36      //TestLoadAndRouter(file6, typeof(AStarAlgorithm), 529102170, 1001363194, true, false);
     37      //TestLoadAndRouter(file6, typeof(AStarAlgorithmV2), 529102170, 1001363194, true, false);
     38      //TestLoadAndRouter(file6, typeof(BidrectionalDijkstraAlgorithm), 529102170, 1001363194, true, false);
    3639
    3740      //TestLoadAndRouter(file5, typeof(DijkstraAlgorithm), 529102170, 1001363194, true, false);
    3841      //TestLoadAndRouter(file5, typeof(BidrectionalDijkstraAlgorithm), 529102170, 1001363194, true, true);
    39       TestLoadAndRouter(file6, typeof(BidrectionalDijkstraAlgorithm), 529102170, 31372732, false, true); // inz - hgb
     42      //TestLoadAndRouter(file6, typeof(BidrectionalDijkstraAlgorithm), 529102170, 31372732, false, true); // inz - hgb
    4043
    4144      System.Console.Read();
  • branches/RoutePlanning/HeuristicLab.Problems.RoutePlanning/3.3/Osm/Way.cs

    r8423 r8426  
    7373        if (base.Tags.ContainsKey(TagConstants.OneWayTag)) {
    7474          string value = base.Tags[TagConstants.OneWayTag];
    75           return value.Equals(TagConstants.YesValue) || value.Equals(TagConstants.TrueValue);
    76         } else if (base.Tags.ContainsKey(TagConstants.JunctionTagKey)) {
    77           string value = base.Tags[TagConstants.JunctionTagKey];
    78           return value.Equals(TagConstants.RoundaboutValue);
     75          return value.Equals(TagConstants.YesValue);
    7976        } else {
    8077          return false;
Note: See TracChangeset for help on using the changeset viewer.