Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/11/14 00:03:36 (10 years ago)
Author:
bburlacu
Message:

#1772: Fixed another minor display bug concerning elite individuals. Fixed bug when saving fragments from mutation. Displayed quality as well in the SymbolicExpressionTreeTile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Analyzers/GenealogyAnalyzer.cs

    r10830 r10833  
    205205        if (EnableCrossoverTracking.Value) {
    206206          if (BeforeCrossoverOperator != null) {
    207             //            BeforeCrossoverOperator.ParentsParameter.ActualName = CrossoverParentsParameterName;
    208             //            BeforeCrossoverOperator.ChildParameter.ActualName = CrossoverChildParameterName;
    209207            instrumentedCrossover.BeforeExecutionOperators.Add(BeforeCrossoverOperator);
    210208          }
    211209          if (AfterCrossoverOperator != null) {
    212             //            AfterCrossoverOperator.ParentsParameter.ActualName = CrossoverParentsParameterName;
    213             //            AfterCrossoverOperator.ChildParameter.ActualName = CrossoverChildParameterName;
    214210            instrumentedCrossover.AfterExecutionOperators.Add(AfterCrossoverOperator);
    215211          }
     
    224220        if (EnableManipulatorTracking.Value) {
    225221          if (BeforeManipulatorOperator != null) {
    226             //            BeforeManipulatorOperator.ChildParameter.ActualName = ManipulatorChildParameterName;
    227222            instrumentedManipulator.BeforeExecutionOperators.Add(BeforeManipulatorOperator);
    228223          }
    229224          if (AfterManipulatorOperator != null) {
    230             //            AfterManipulatorOperator.ChildParameter.ActualName = ManipulatorChildParameterName;
    231225            instrumentedManipulator.AfterExecutionOperators.Add(AfterManipulatorOperator);
    232226          }
     
    257251            IsElite = true
    258252          };
     253          // add new vertex to the graph
     254          GenealogyGraph.AddVertex(vertex);
     255          // swap content between current vertex and previous vertex
    259256          var previousVertex = (IGenealogyGraphNode<T>)GenealogyGraph[elite];
    260           GenealogyGraph.AddVertex(vertex);
     257          var tmp = vertex.Content;
     258          vertex.Content = previousVertex.Content;
     259          previousVertex.Content = tmp;
     260          // adjust graph content map
     261          GenealogyGraph[vertex.Content] = vertex;
     262          GenealogyGraph[previousVertex.Content] = previousVertex;
     263          // connect current elite with previous elite
    261264          previousVertex.AddForwardArc(vertex);
    262265          vertex.AddReverseArc(previousVertex);
Note: See TracChangeset for help on using the changeset viewer.