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.

Location:
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4
Files:
4 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);
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/DirectedGraph/DirectedGraph.cs

    r10755 r10833  
    6868        return result;
    6969      }
     70      set {
     71        contentMap[key] = value;
     72      }
    7073    }
    7174    public virtual bool Any(Func<IVertex, bool> predicate) {
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/DirectedGraph/Interfaces/IDirectedGraph.cs

    r10755 r10833  
    3232    void RemoveVertex(IVertex vertex);
    3333    List<IVertex> Nodes { get; }
    34     IVertex this[object content] { get; }
     34    IVertex this[object content] { get; set; }
    3535    bool Contains(object content);
    3636  }
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraph.cs

    r10830 r10833  
    7676        return result == null ? null : (IGenealogyGraphNode)result;
    7777      }
     78      set { base[content] = value; }
    7879    }
    7980
Note: See TracChangeset for help on using the changeset viewer.