Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8230


Ignore:
Timestamp:
07/05/12 14:14:12 (12 years ago)
Author:
ascheibe
Message:

#1886 fixed a bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior/3.3/Analyzers/BestIndividualQualityAnalyzer.cs

    r8229 r8230  
    131131      var lastGen = graph.Values.Where(x => x.Rank == GenerationsParameter.ActualValue.Value);
    132132      var parents = lastGen.Where(x => comparer.Equals((IntArray)x.Data, parent));
    133       var descendants = parents.First().Descendants().Where(x => AlgorithmBehaviorHelpers.IsSubtour(schema, (Permutation)x.Data));
     133      var ancestors = parents.First().Ancestors().Where(x => AlgorithmBehaviorHelpers.IsSubtour(schema, (Permutation)x.Data));
    134134
    135135      StringBuilder sb = new StringBuilder();
    136       foreach (var d in descendants) {
    137         sb.Append(d.Rank + ", ");
     136      foreach (var a in ancestors) {
     137        sb.Append(a.Rank + ", ");
    138138      }
    139139      return sb.ToString();
Note: See TracChangeset for help on using the changeset viewer.