Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/01/13 13:01:40 (11 years ago)
Author:
bburlacu
Message:

#1772: Merged remaining trunk changes into the EvolutionaryTracking branch.

Location:
branches/HeuristicLab.EvolutionaryTracking
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionaryTracking

  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking/3.4/Operators/SymbolicExpressionTreeGenealogyGraphBuilder.cs

    r9419 r9835  
    207207      int generation = Generations.Value;
    208208
    209       var pairs =
    210         trees.Zip(qualities, (t, q) => new { Tree = t, Quality = q.Value }).OrderByDescending(x => x.Quality).ToList();
     209      var pairs = trees.Zip(qualities, (t, q) => new { Tree = t, Quality = q.Value }).OrderByDescending(x => x.Quality).ToList();
    211210
    212211      if (generation == 0) {
     
    245244           Quality = Evaluate(p),
    246245           Rank = generation - 0.5
    247            // an intermediate parent that would normale be 'invisible' to the evolutionary process
     246           // an intermediate parent that would normally be 'invisible' to the evolutionary process
    248247         }
    249248        ).ToList();
     
    262261            // link elites from previous generation
    263262            var last = nodes[nodes.Count - 2];
    264             var arc = new Arc { Source = last, Target = node, Data = new Fragment(null) };
     263            var arc = new Arc { Source = last, Target = node, Data = new Fragment { Root = null } };
    265264            last.AddForwardArc(arc);
    266265            node.AddReverseArc(arc);
     
    268267          continue;
    269268        }
     269
    270270        var parents = GlobalTraceMap[tree].Cast<ISymbolicExpressionTree>().ToList();
    271271        var fragment = GlobalFragmentMap[tree];
     
    286286        // so it does not actually pass a subtree to the child, therefore the fragment is null
    287287        // so in case of crossover, we add a null fragment below
    288         if (parents.Count > 1) node.InEdges[0].Data = new Fragment(null);
     288        if (parents.Count > 1) node.InEdges[0].Data = new Fragment { Root = null };
    289289      }
    290290
     
    299299    /// </summary>
    300300    /// <param name="tree">The symbolic expression tree to evaluate</param>
    301     /// <returns>A double value representing the fitness</returns>
     301    /// <returns>A double value representing the individual quality</returns>
    302302    private double Evaluate(IItem tree) {
    303303      var subScope = new Scope();
Note: See TracChangeset for help on using the changeset viewer.