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.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionBeforeManipulatorOperator.cs

    r10827 r10833  
    3333      vChild.InArcs.First().Data = vChild.Content.IterateNodesPrefix().ToList();
    3434
     35      var vClone = (IGenealogyGraphNode<ISymbolicExpressionTree>)vChild.InArcs.Last().Source;
     36      var fragment = (IFragment<ISymbolicExpressionTreeNode>)vClone.InArcs.Last().Data;
     37      if (fragment != null) {
     38        // this step must be performed because the fragment root actually references the original child (not the clone).
     39        // then, a mutation operation (acting on the original child), could disrupt it
     40        fragment.Root = vClone.Content.IterateNodesPrefix().ElementAt(fragment.Index1);
     41      }
     42
    3543      return result;
    3644    }
Note: See TracChangeset for help on using the changeset viewer.