Changeset 8230 for branches/HeuristicLab.Analysis.AlgorithmBehavior
- Timestamp:
- 07/05/12 14:14:12 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior/3.3/Analyzers/BestIndividualQualityAnalyzer.cs
r8229 r8230 131 131 var lastGen = graph.Values.Where(x => x.Rank == GenerationsParameter.ActualValue.Value); 132 132 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)); 134 134 135 135 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 + ", "); 138 138 } 139 139 return sb.ToString();
Note: See TracChangeset
for help on using the changeset viewer.