Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/13/12 13:20:38 (12 years ago)
Author:
bburlacu
Message:

#1772: New analyzer: SymbolicExpressionTreeRelativeLengthAnalyzer. Rewrote the SymbolicExpressionTreeFragmentsAnalyzer, added generic wrapper to wrap HL objects as items.

Location:
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Selection/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Selection/3.3/Plugin.cs

    r7817 r7997  
    2626  /// Plugin class for HeuristicLab.Selection plugin.
    2727  /// </summary>
    28   [Plugin("HeuristicLab.Selection", "3.3.6.7800")]
     28  [Plugin("HeuristicLab.Selection", "3.3.6.7817")]
    2929  [PluginFile("HeuristicLab.Selection-3.3.dll", PluginFileType.Assembly)]
    3030  [PluginDependency("HeuristicLab.Collections", "3.3")]
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Selection/3.3/ProportionalSelector.cs

    r7779 r7997  
    2626using HeuristicLab.Core;
    2727using HeuristicLab.Data;
    28 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2928using HeuristicLab.Optimization;
    3029using HeuristicLab.Parameters;
     
    103102          // map the selected (cloned) tree to the original tree
    104103          var original = scopes[index].Variables.First().Value;
    105           var clone = selected[i].Variables.First().Value; 
     104          var clone = selected[i].Variables.First().Value;
    106105          GlobalCloneMap.Add(clone, original);
    107106        } else {
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Selection/3.3/RandomSelector.cs

    r7779 r7997  
    2121
    2222using System.Collections.Generic;
     23using System.Linq;
    2324using HeuristicLab.Common;
    2425using HeuristicLab.Core;
     
    6970
    7071      for (int i = 0; i < count; i++) {
    71         if (copy)
    72           selected[i] = (IScope)scopes[random.Next(scopes.Count)].Clone();
    73         else {
     72        if (copy) {
     73          int index = random.Next(scopes.Count);
     74          selected[i] = (IScope)scopes[index].Clone();
     75          // map the selected (cloned) tree to the original tree
     76          var original = scopes[index].Variables.First().Value;
     77          var clone = selected[i].Variables.First().Value;
     78          GlobalCloneMap.Add(clone, original);
     79        } else {
    7480          int index = random.Next(scopes.Count);
    7581          selected[i] = scopes[index];
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Selection/3.3/Selector.cs

    r7779 r7997  
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
    25 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2625using HeuristicLab.Operators;
    2726using HeuristicLab.Parameters;
     
    7473        while (gScope.Parent != null) gScope = gScope.Parent;
    7574        gScope.Variables.Add(new Variable(GlobalCloneMapParameterName, new CloneMapType()));
    76       } else {
    77         GlobalCloneMap.Clear();
    7875      }
    79 
    8076      IScope[] selected = Select(scopes);
    8177
Note: See TracChangeset for help on using the changeset viewer.