Changeset 9246 for branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Timestamp:
- 02/27/13 13:16:57 (12 years ago)
- 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 172 172 <Compile Include="Interfaces\Operators\ITracingSymbolicExpressionTreeOperator.cs" /> 173 173 <Compile Include="Manipulators\RemoveBranchManipulation.cs" /> 174 <Compile Include="SymbolicExpressionTreeTextRenderer.cs" />175 174 <Compile Include="TracingSymbolicExpressionTreeOperator.cs" /> 176 175 <Compile Include="Creators\TracingSymbolicExpressionTreeCreator.cs" /> -
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Manipulators/TracingSymbolicExpressionTreeManipulator.cs
r9237 r9246 95 95 GlobalTraceMap[tree] = new ItemList<IItem> { GlobalCloneMap[tree] }; 96 96 } 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 manipulation104 // Manipulate(RandomParameter.ActualValue, tree);105 // var nodes1 = tree.IterateNodesBreadth().ToList(); // list of nodes after manipulation106 107 97 var comparer = SymbolicExpressionTreeNodeComparer; 108 98 var clonedTree = (ISymbolicExpressionTree)tree.Clone(); … … 114 104 int i = 0; while (i != min && comparer.Equals(nodes0[i], nodes1[i])) ++i; 115 105 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 tree123 // // therefore, the whole tree is considered to be the fragment124 // 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 158 106 GlobalFragmentMap[tree] = fragment; 159 107 return base.Apply(); -
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Plugin.cs
r9237 r9246 23 23 24 24 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 25 [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding","Provides operators and related classes for the symbolic expression tree encoding.", "3.4.3.9 083")]25 [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding","Provides operators and related classes for the symbolic expression tree encoding.", "3.4.3.9237")] 26 26 [PluginFile("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.dll", PluginFileType.Assembly)] 27 27 [PluginDependency("HeuristicLab.Analysis", "3.3")]
Note: See TracChangeset
for help on using the changeset viewer.