Changeset 7785 for branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding
- Timestamp:
- 05/09/12 09:56:56 (13 years ago)
- Location:
- branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/CutPoint.cs
r7522 r7785 64 64 } 65 65 } 66 67 public static CutPoint GetCutPoint(ISymbolicExpressionTree parent, ISymbolicExpressionTree child) { 68 return GetCutPoint(parent.Root, child.Root); 69 } 70 71 public static CutPoint GetCutPoint(ISymbolicExpressionTree parent, ISymbolicExpressionTreeNode child) { 72 return GetCutPoint(parent.Root, child); 73 } 74 75 public static CutPoint GetCutPoint(ISymbolicExpressionTreeNode parent, ISymbolicExpressionTree child) { 76 return GetCutPoint(parent, child.Root); 77 } 78 79 // child is the result of a genetic operation on parent 80 // this method returns the index on which the two individuals start to differ 81 public static CutPoint GetCutPoint(ISymbolicExpressionTreeNode parent, ISymbolicExpressionTreeNode child) { 82 var e1 = parent.IterateNodesPostfix().GetEnumerator(); 83 var e2 = child.IterateNodesPostfix().GetEnumerator(); 84 int pos = -1; 85 var comparer = new SymbolicExpressionTreeNodeComparer((int)SymbolicExpressionTreeMatching.SimilarityLevel.Exact); 86 while (e1.MoveNext() && e2.MoveNext()) 87 if (comparer.Equals(e1.Current, e2.Current)) 88 ++pos; 89 return pos == -1 ? null : new CutPoint(parent, pos); 90 } 66 91 } 67 92 } -
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.csproj
r7479 r7785 133 133 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 134 134 </Reference> 135 <Reference Include="HeuristicLab.Problems.DataAnalysis.Symbolic-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 136 <SpecificVersion>False</SpecificVersion> 137 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.dll</HintPath> 138 </Reference> 135 139 <Reference Include="HeuristicLab.Random-3.3"> 136 140 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Random-3.3.dll</HintPath> … … 174 178 </Compile> 175 179 <Compile Include="Creators\RampedHalfAndHalfTreeCreator.cs" /> 180 <Compile Include="Crossovers\AssortativeSymbolicExpressionTreeCrossover.cs" /> 176 181 <Compile Include="Crossovers\TracingSymbolicExpressionTreeCrossover.cs" /> 177 182 <Compile Include="Interfaces\IReadOnlySymbol.cs" /> … … 206 211 <Compile Include="SymbolicExpressionGrammar.cs" /> 207 212 <Compile Include="SymbolicExpressionTreeGrammar.cs" /> 213 <Compile Include="SymbolicExpressionTreeMatching.cs" /> 208 214 <Compile Include="SymbolicExpressionTreeTopLevelNode.cs" /> 209 215 <Compile Include="Crossovers\SubtreeCrossover.cs"> -
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.csproj.user
r7514 r7785 7 7 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'"> 8 8 <StartAction>Program</StartAction> 9 <StartProgram>C:\Users\ bburlacu\Desktop\HL-Core\trunk\sources\bin\HeuristicLab 3.3.exe</StartProgram>9 <StartProgram>C:\Users\Bogdan\Desktop\Trunk\sources\bin\HeuristicLab 3.3.exe</StartProgram> 10 10 </PropertyGroup> 11 11 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> -
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Plugin.cs
r7779 r7785 26 26 27 27 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 28 [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding","Provides operators and related classes for the symbolic expression tree encoding.", "3.4.2.7 522")]28 [Plugin("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding","Provides operators and related classes for the symbolic expression tree encoding.", "3.4.2.7779")] 29 29 [PluginFile("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Analysis", "3.3")]
Note: See TracChangeset
for help on using the changeset viewer.