Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9246


Ignore:
Timestamp:
02/27/13 13:16:57 (12 years ago)
Author:
bburlacu
Message:

#1772: Removed commented code from TracingSymbolicExpressionTreeManipulator.cs. Updated project file.

Location:
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.csproj

    r9237 r9246  
    172172    <Compile Include="Interfaces\Operators\ITracingSymbolicExpressionTreeOperator.cs" />
    173173    <Compile Include="Manipulators\RemoveBranchManipulation.cs" />
    174     <Compile Include="SymbolicExpressionTreeTextRenderer.cs" />
    175174    <Compile Include="TracingSymbolicExpressionTreeOperator.cs" />
    176175    <Compile Include="Creators\TracingSymbolicExpressionTreeCreator.cs" />
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Manipulators/TracingSymbolicExpressionTreeManipulator.cs

    r9237 r9246  
    9595        GlobalTraceMap[tree] = new ItemList<IItem> { GlobalCloneMap[tree] };
    9696      }
    97 
    98       //      var concreteType = this.GetType();
    99 
    100       //      if (!manipulationTypes.ContainsKey(concreteType))
    101       //        throw new Exception(this.Name + ": Unknown manipulation type (key not found in the dictionary).");
    102 
    103       //      var nodes0 = tree.IterateNodesBreadth().ToList(); // list of nodes before manipulation
    104       //      Manipulate(RandomParameter.ActualValue, tree);
    105       //      var nodes1 = tree.IterateNodesBreadth().ToList(); // list of nodes after manipulation
    106 
    10797      var comparer = SymbolicExpressionTreeNodeComparer;
    10898      var clonedTree = (ISymbolicExpressionTree)tree.Clone();
     
    114104      int i = 0; while (i != min && comparer.Equals(nodes0[i], nodes1[i])) ++i;
    115105      fragment = new Fragment(i == min ? null : nodes1[i], 1);
    116       GlobalFragmentMap[tree] = fragment;
    117 
    118 
    119 
    120       //      switch (manipulationTypes[concreteType]) {
    121       //        case ManipulationType.FullTreeShaker: {
    122       //            // the FullTreeShaker changes the local parameters of all the nodes in the tree
    123       //            // therefore, the whole tree is considered to be the fragment
    124       //            fragment = new Fragment(tree.Root.GetSubtree(0).GetSubtree(0));
    125       //            break;
    126       //          }
    127       //        case ManipulationType.OnePointShaker: {
    128       //            var original = (ISymbolicExpressionTree)GlobalCloneMap[tree];
    129       //            var nodesOriginal = original.IterateNodesBreadth().ToList();
    130       //            int i = 0;
    131       //            var comparer = SymbolicExpressionTreeNodeComparer;
    132       //            while (i != min && comparer.Equals(nodesOriginal[i], nodes1[i])) ++i;
    133       //            fragment = new Fragment(i == min ? null : nodes1[i], 1);
    134       //            break;
    135       //          }
    136       //        case ManipulationType.ChangeNodeTypeManipulation: {
    137       //            int i = 0;
    138       //            while (i != min && ReferenceEquals(nodes0[i], nodes1[i])) ++i;
    139       //            fragment = new Fragment(i == min ? null : nodes1[i], 1);
    140       //            break;
    141       //          }
    142       //        case ManipulationType.ReplaceBranchManipulation: {
    143       //            int i = 0;
    144       //            while (i != min && ReferenceEquals(nodes0[i], nodes1[i])) ++i;
    145       //            fragment = new Fragment(i == min ? null : nodes1[i]);
    146       //            break;
    147       //          }
    148       //        case ManipulationType.RemoveBranchManipulation: {
    149       //            int i = 0;
    150       //            while (i != min && ReferenceEquals(nodes0[i], nodes1[i])) ++i;
    151       //            fragment = new Fragment(i == min ? null : nodes1[i]);
    152       //            break;
    153       //          }
    154       //        default:
    155       //          throw new Exception(Name + ": Unknown manipulaton type.");
    156       //      }
    157 
    158106      GlobalFragmentMap[tree] = fragment;
    159107      return base.Apply();
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Plugin.cs

    r9237 r9246  
    2323
    2424namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
    25   [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding","Provides operators and related classes for the symbolic expression tree encoding.", "3.4.3.9083")]
     25  [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding","Provides operators and related classes for the symbolic expression tree encoding.", "3.4.3.9237")]
    2626  [PluginFile("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.dll", PluginFileType.Assembly)]
    2727  [PluginDependency("HeuristicLab.Analysis", "3.3")]
Note: See TracChangeset for help on using the changeset viewer.