Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8249


Ignore:
Timestamp:
07/06/12 11:44:58 (12 years ago)
Author:
bburlacu
Message:

#1772: Fixed small bug (correct counting of node ranks) in the SymbolicExpressionTreeGenealogyAnalyzer. Fixed node tool tips in the GenealogyGraphChart.

Location:
branches/HeuristicLab.EvolutionaryTracking
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking.Views/3.4/GenealogyGraphChart.cs

    r8248 r8249  
    101101            Data = node,
    102102            ToolTipText = "Id: " + node.Label + nl +
    103                           "Ranks: " + Graph[node].Ranks + nl +
     103                          "Ranks: " + string.Join(",", Graph[node].Ranks.Select(r => r.ToString())) + nl +
    104104                          "Quality: " + String.Format("{0:0.0000}", Graph[node].Quality) + nl +
    105105                          "IsElite: " + Graph[node].IsElite
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking/3.4/Analyzers/SymbolicExpressionTreeGenealogyAnalyzer.cs

    r8248 r8249  
    241241          var label = (generation * scopes.Count + i + 1).ToString(CultureInfo.InvariantCulture);
    242242          if (!graph.HasNode(indiv)) {
    243             var node = new GenealogyGraphNode(indiv) {
    244               Label = label,
    245             };
     243            var node = new GenealogyGraphNode(indiv) { Label = label };
    246244            graph.AddNode(node);
    247245            // node metadata
     
    249247            graph[node].Quality = scopes[i].Quality;
    250248            graph[node].IsElite = i < Elites.Value;
     249          } else {
     250            var node = graph.GetNode(indiv);
     251            graph[node].Ranks.Add(generation);
    251252          }
    252253          if (generation == 0) continue;
Note: See TracChangeset for help on using the changeset viewer.