Changeset 1914 for trunk/sources/HeuristicLab.GP.StructureIdentification
- Timestamp:
- 05/27/09 15:42:04 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.GP.StructureIdentification/3.4
- Files:
-
- 7 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.GP.StructureIdentification/3.4/AlgorithmBase.cs ¶
r1906 r1914 36 36 using HeuristicLab.Evolutionary; 37 37 using HeuristicLab.Modeling; 38 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 38 39 39 40 namespace HeuristicLab.GP.StructureIdentification { 40 41 public abstract class AlgorithmBase : ItemBase, IAlgorithm, IStochasticAlgorithm { 42 41 43 public virtual string Name { get { return "GP"; } } 44 42 45 public virtual string Description { get { return "TODO"; } } 43 46 … … 110 113 private IOperator algorithm; 111 114 115 [Storable] 112 116 private SequentialEngine.SequentialEngine engine; 117 113 118 public IEngine Engine { 114 119 get { return engine; } … … 444 449 return (RandomInjector)algorithm.SubOperators[1]; 445 450 } 446 447 #region Persistence Methods448 public override XmlNode GetXmlNode(string name, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) {449 XmlNode node = base.GetXmlNode(name, document, persistedObjects);450 node.AppendChild(PersistenceManager.Persist("Engine", Engine, document, persistedObjects));451 return node;452 }453 public override void Populate(XmlNode node, IDictionary<Guid, IStorable> restoredObjects) {454 base.Populate(node, restoredObjects);455 engine = (SequentialEngine.SequentialEngine)PersistenceManager.Restore(node.SelectSingleNode("Engine"), restoredObjects);456 }457 #endregion458 459 451 } 460 452 } -
TabularUnified trunk/sources/HeuristicLab.GP.StructureIdentification/3.4/HeuristicLab.GP.StructureIdentification-3.4.csproj ¶
r1907 r1914 6 6 <ProductVersion>9.0.30729</ProductVersion> 7 7 <SchemaVersion>2.0</SchemaVersion> 8 <ProjectGuid>{ 74223A32-C726-4978-BE78-37113A18373C}</ProjectGuid>8 <ProjectGuid>{4BA6068B-647C-454D-AED1-F4833034A476}</ProjectGuid> 9 9 <OutputType>Library</OutputType> 10 10 <AppDesignerFolder>Properties</AppDesignerFolder> 11 11 <RootNamespace>HeuristicLab.GP.StructureIdentification</RootNamespace> 12 <AssemblyName>HeuristicLab.GP.StructureIdentification-3. 3</AssemblyName>12 <AssemblyName>HeuristicLab.GP.StructureIdentification-3.4</AssemblyName> 13 13 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 14 14 <FileAlignment>512</FileAlignment> … … 146 146 </ItemGroup> 147 147 <ItemGroup> 148 <ProjectReference Include="..\..\HeuristicLab.Constraints\3.2\HeuristicLab.Constraints-3.2.csproj"> 149 <Project>{FCD62C6F-4793-4593-AE9A-0BDCA256EE99}</Project> 150 <Name>HeuristicLab.Constraints-3.2</Name> 151 </ProjectReference> 152 <ProjectReference Include="..\..\HeuristicLab.Core\3.2\HeuristicLab.Core-3.2.csproj"> 153 <Project>{F43B59AB-2B8C-4570-BC1E-15592086517C}</Project> 154 <Name>HeuristicLab.Core-3.2</Name> 155 </ProjectReference> 156 <ProjectReference Include="..\..\HeuristicLab.DataAnalysis\3.2\HeuristicLab.DataAnalysis-3.2.csproj"> 157 <Project>{7DD3A97A-56E9-462F-90E2-A351FE7AF5C2}</Project> 158 <Name>HeuristicLab.DataAnalysis-3.2</Name> 159 </ProjectReference> 160 <ProjectReference Include="..\..\HeuristicLab.Data\3.2\HeuristicLab.Data-3.2.csproj"> 161 <Project>{F473D9AF-3F09-4296-9F28-3C65118DAFFA}</Project> 162 <Name>HeuristicLab.Data-3.2</Name> 163 </ProjectReference> 164 <ProjectReference Include="..\..\HeuristicLab.Evolutionary\3.2\HeuristicLab.Evolutionary-3.2.csproj"> 165 <Project>{F5614C53-153C-4A37-A608-121E1C087F07}</Project> 166 <Name>HeuristicLab.Evolutionary-3.2</Name> 167 </ProjectReference> 168 <ProjectReference Include="..\..\HeuristicLab.GP\3.3\HeuristicLab.GP-3.3.csproj"> 169 <Project>{1F1CF3ED-374C-4288-995B-93F6B872F571}</Project> 170 <Name>HeuristicLab.GP-3.3</Name> 171 </ProjectReference> 172 <ProjectReference Include="..\..\HeuristicLab.Logging\3.2\HeuristicLab.Logging-3.2.csproj"> 173 <Project>{4095C92C-5A4C-44BC-9963-5F384CF5CC3F}</Project> 174 <Name>HeuristicLab.Logging-3.2</Name> 175 </ProjectReference> 176 <ProjectReference Include="..\..\HeuristicLab.Modeling\3.2\HeuristicLab.Modeling-3.2.csproj"> 177 <Project>{80F7FADA-549D-4151-8856-79B620A50DBA}</Project> 178 <Name>HeuristicLab.Modeling-3.2</Name> 179 </ProjectReference> 180 <ProjectReference Include="..\..\HeuristicLab.Operators.Programmable\3.2\HeuristicLab.Operators.Programmable-3.2.csproj"> 181 <Project>{E3CCBFC6-900C-41B6-AFB8-6646DB097435}</Project> 182 <Name>HeuristicLab.Operators.Programmable-3.2</Name> 183 </ProjectReference> 184 <ProjectReference Include="..\..\HeuristicLab.Operators\3.2\HeuristicLab.Operators-3.2.csproj"> 185 <Project>{A9983BA2-B3B2-475E-8E2C-62050B71D1C5}</Project> 186 <Name>HeuristicLab.Operators-3.2</Name> 148 <ProjectReference Include="..\..\HeuristicLab.Constraints\3.3\HeuristicLab.Constraints-3.3.csproj"> 149 <Project>{19C1E42A-4B48-4EFD-B697-899016F1C198}</Project> 150 <Name>HeuristicLab.Constraints-3.3</Name> 151 </ProjectReference> 152 <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj"> 153 <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project> 154 <Name>HeuristicLab.Core-3.3</Name> 155 </ProjectReference> 156 <ProjectReference Include="..\..\HeuristicLab.DataAnalysis\3.3\HeuristicLab.DataAnalysis-3.3.csproj"> 157 <Project>{6AD536AE-B4CC-4424-B0A2-20CECE88CE57}</Project> 158 <Name>HeuristicLab.DataAnalysis-3.3</Name> 159 </ProjectReference> 160 <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj"> 161 <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project> 162 <Name>HeuristicLab.Data-3.3</Name> 163 </ProjectReference> 164 <ProjectReference Include="..\..\HeuristicLab.Evolutionary\3.3\HeuristicLab.Evolutionary-3.3.csproj"> 165 <Project>{25087811-F74C-4128-BC86-8324271DA13E}</Project> 166 <Name>HeuristicLab.Evolutionary-3.3</Name> 167 </ProjectReference> 168 <ProjectReference Include="..\..\HeuristicLab.GP\3.4\HeuristicLab.GP-3.4.csproj"> 169 <Project>{DA0D505A-2149-4E3C-B220-5724DE26EB59}</Project> 170 <Name>HeuristicLab.GP-3.4</Name> 171 </ProjectReference> 172 <ProjectReference Include="..\..\HeuristicLab.Logging\3.3\HeuristicLab.Logging-3.3.csproj"> 173 <Project>{72908B54-D136-4BF2-8474-25AA6CB66C92}</Project> 174 <Name>HeuristicLab.Logging-3.3</Name> 175 </ProjectReference> 176 <ProjectReference Include="..\..\HeuristicLab.Modeling\3.3\HeuristicLab.Modeling-3.3.csproj"> 177 <Project>{3A5ACA94-47A7-47D6-B644-2B8A7503FCCC}</Project> 178 <Name>HeuristicLab.Modeling-3.3</Name> 179 </ProjectReference> 180 <ProjectReference Include="..\..\HeuristicLab.Operators.Programmable\3.3\HeuristicLab.Operators.Programmable-3.3.csproj"> 181 <Project>{6A5F8C2D-B0C3-4B36-BC20-9B1A91EE6DB6}</Project> 182 <Name>HeuristicLab.Operators.Programmable-3.3</Name> 183 </ProjectReference> 184 <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj"> 185 <Project>{23DA7FF4-D5B8-41B6-AA96-F0561D24F3EE}</Project> 186 <Name>HeuristicLab.Operators-3.3</Name> 187 </ProjectReference> 188 <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj"> 189 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project> 190 <Name>HeuristicLab.Persistence-3.3</Name> 187 191 </ProjectReference> 188 192 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj"> … … 190 194 <Name>HeuristicLab.PluginInfrastructure</Name> 191 195 </ProjectReference> 192 <ProjectReference Include="..\..\HeuristicLab.Random\3. 2\HeuristicLab.Random-3.2.csproj">193 <Project>{ 47019A74-F7F7-482E-83AA-D3F4F777E879}</Project>194 <Name>HeuristicLab.Random-3. 2</Name>195 </ProjectReference> 196 <ProjectReference Include="..\..\HeuristicLab.Selection.OffspringSelection\3. 2\HeuristicLab.Selection.OffspringSelection-3.2.csproj">197 <Project>{ 205898D3-2717-4686-AF17-52409B7EC0C6}</Project>198 <Name>HeuristicLab.Selection.OffspringSelection-3. 2</Name>199 </ProjectReference> 200 <ProjectReference Include="..\..\HeuristicLab.Selection\3. 2\HeuristicLab.Selection-3.2.csproj">201 <Project>{ F7CF0571-25CB-43D5-8443-0843A1E2861A}</Project>202 <Name>HeuristicLab.Selection-3. 2</Name>203 </ProjectReference> 204 <ProjectReference Include="..\..\HeuristicLab.SequentialEngine\3. 2\HeuristicLab.SequentialEngine-3.2.csproj">205 <Project>{ B4BE8E53-BA06-4237-9A01-24255F880201}</Project>206 <Name>HeuristicLab.SequentialEngine-3. 2</Name>196 <ProjectReference Include="..\..\HeuristicLab.Random\3.3\HeuristicLab.Random-3.3.csproj"> 197 <Project>{F4539FB6-4708-40C9-BE64-0A1390AEA197}</Project> 198 <Name>HeuristicLab.Random-3.3</Name> 199 </ProjectReference> 200 <ProjectReference Include="..\..\HeuristicLab.Selection.OffspringSelection\3.3\HeuristicLab.Selection.OffspringSelection-3.3.csproj"> 201 <Project>{81609E8A-9757-4865-8B89-0B6603F769E8}</Project> 202 <Name>HeuristicLab.Selection.OffspringSelection-3.3</Name> 203 </ProjectReference> 204 <ProjectReference Include="..\..\HeuristicLab.Selection\3.3\HeuristicLab.Selection-3.3.csproj"> 205 <Project>{2C36CD4F-E5F5-43A4-801A-201EA895FE17}</Project> 206 <Name>HeuristicLab.Selection-3.3</Name> 207 </ProjectReference> 208 <ProjectReference Include="..\..\HeuristicLab.SequentialEngine\3.3\HeuristicLab.SequentialEngine-3.3.csproj"> 209 <Project>{DC3D7072-7999-4719-B65D-3997744D5DC1}</Project> 210 <Name>HeuristicLab.SequentialEngine-3.3</Name> 207 211 </ProjectReference> 208 212 </ItemGroup> -
TabularUnified trunk/sources/HeuristicLab.GP.StructureIdentification/3.4/HeuristicLabGPStructureIdentificationPlugin.cs ¶
r1856 r1914 26 26 27 27 namespace HeuristicLab.GP.StructureIdentification { 28 [ClassInfo(Name = "HeuristicLab.GP.StructureIdentification-3.3")] 29 [PluginFile(Filename = "HeuristicLab.GP.StructureIdentification-3.3.dll", Filetype = PluginFileType.Assembly)] 30 [Dependency(Dependency = "HeuristicLab.Constraints-3.2")] 31 [Dependency(Dependency = "HeuristicLab.Core-3.2")] 32 [Dependency(Dependency = "HeuristicLab.Data-3.2")] 33 [Dependency(Dependency = "HeuristicLab.DataAnalysis-3.2")] 34 [Dependency(Dependency = "HeuristicLab.Evolutionary-3.2")] 35 [Dependency(Dependency = "HeuristicLab.GP-3.3")] 36 [Dependency(Dependency = "HeuristicLab.Logging-3.2")] 37 [Dependency(Dependency = "HeuristicLab.Operators-3.2")] 38 [Dependency(Dependency = "HeuristicLab.Operators.Programmable-3.2")] 39 [Dependency(Dependency = "HeuristicLab.Random-3.2")] 40 [Dependency(Dependency = "HeuristicLab.Selection-3.2")] 41 [Dependency(Dependency = "HeuristicLab.Selection.OffspringSelection-3.2")] 42 [Dependency(Dependency = "HeuristicLab.SequentialEngine-3.2")] 43 [Dependency(Dependency = "HeuristicLab.Modeling-3.2")] 28 [ClassInfo(Name = "HeuristicLab.GP.StructureIdentification-3.4")] 29 [PluginFile(Filename = "HeuristicLab.GP.StructureIdentification-3.4.dll", Filetype = PluginFileType.Assembly)] 30 [Dependency(Dependency = "HeuristicLab.Constraints-3.3")] 31 [Dependency(Dependency = "HeuristicLab.Core-3.3")] 32 [Dependency(Dependency = "HeuristicLab.Data-3.3")] 33 [Dependency(Dependency = "HeuristicLab.DataAnalysis-3.3")] 34 [Dependency(Dependency = "HeuristicLab.Evolutionary-3.3")] 35 [Dependency(Dependency = "HeuristicLab.GP-3.4")] 36 [Dependency(Dependency = "HeuristicLab.Logging-3.3")] 37 [Dependency(Dependency = "HeuristicLab.Modeling-3.3")] 38 [Dependency(Dependency = "HeuristicLab.Operators-3.3")] 39 [Dependency(Dependency = "HeuristicLab.Operators.Programmable-3.3")] 40 [Dependency(Dependency = "HeuristicLab.Random-3.3")] 41 [Dependency(Dependency = "HeuristicLab.Selection-3.3")] 42 [Dependency(Dependency = "HeuristicLab.Selection.OffspringSelection-3.3")] 43 [Dependency(Dependency = "HeuristicLab.SequentialEngine-3.3")] 44 [Dependency(Dependency = "HeuristicLab.Persistence-3.3")] 44 45 public class HeuristicLabGPStructureIdentificationPlugin : PluginBase { 45 46 } -
TabularUnified trunk/sources/HeuristicLab.GP.StructureIdentification/3.4/OffspringSelectionGP.cs ¶
r1857 r1914 36 36 using HeuristicLab.Selection.OffspringSelection; 37 37 using HeuristicLab.Evolutionary; 38 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 38 39 39 40 namespace HeuristicLab.GP.StructureIdentification { 41 42 [EmptyStorableClass] 40 43 public class OffspringSelectionGP : StandardGP { 41 44 public override string Name { get { return "OffspringSelectionGP"; } } -
TabularUnified trunk/sources/HeuristicLab.GP.StructureIdentification/3.4/Properties/AssemblyInfo.frame ¶
r1527 r1914 54 54 // You can specify all the values or you can default the Revision and Build Numbers 55 55 // by using the '*' as shown below: 56 [assembly: AssemblyVersion("3. 3.0.$WCREV$")]57 [assembly: AssemblyFileVersion("3. 3.0.$WCREV$")]56 [assembly: AssemblyVersion("3.4.0.$WCREV$")] 57 [assembly: AssemblyFileVersion("3.4.0.$WCREV$")] 58 58 [assembly: AssemblyBuildDate("$WCNOW$")] -
TabularUnified trunk/sources/HeuristicLab.GP.StructureIdentification/3.4/StandardGP.cs ¶
r1906 r1914 35 35 using HeuristicLab.Operators.Programmable; 36 36 using HeuristicLab.Modeling; 37 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 37 38 38 39 namespace HeuristicLab.GP.StructureIdentification { 40 41 [EmptyStorableClass] 39 42 public class StandardGP : AlgorithmBase, IEditable { 40 43 -
TabularUnified trunk/sources/HeuristicLab.GP.StructureIdentification/3.4/TreeEvaluatorBase.cs ¶
r1891 r1914 28 28 using System.Diagnostics; 29 29 using HeuristicLab.DataAnalysis; 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 31 31 32 namespace HeuristicLab.GP.StructureIdentification { … … 34 35 /// </summary> 35 36 public abstract class TreeEvaluatorBase : ItemBase, ITreeEvaluator { 37 36 38 protected const double EPSILON = 1.0e-7; 39 40 [Storable] 37 41 protected double estimatedValueMax; 42 43 [Storable] 38 44 protected double estimatedValueMin; 45 46 [Storable] 47 protected Dataset dataset; 39 48 40 49 protected class Instr { … … 49 58 protected Instr[] codeArr; 50 59 protected int PC; 51 protected Dataset dataset;52 60 protected int sampleIndex; 53 61 … … 135 143 return clone; 136 144 } 137 138 public override XmlNode GetXmlNode(string name, XmlDocument document, IDictionary<Guid, IStorable> persistedObjects) {139 XmlNode node = base.GetXmlNode(name, document, persistedObjects);140 XmlAttribute minEstimatedValueAttr = document.CreateAttribute("MinEstimatedValue");141 minEstimatedValueAttr.Value = XmlConvert.ToString(estimatedValueMin);142 node.Attributes.Append(minEstimatedValueAttr);143 144 XmlAttribute maxEstimatedValueAttr = document.CreateAttribute("MaxEstimatedValue");145 maxEstimatedValueAttr.Value = XmlConvert.ToString(estimatedValueMax);146 node.Attributes.Append(maxEstimatedValueAttr);147 148 node.AppendChild(PersistenceManager.Persist("Dataset", dataset, document, persistedObjects));149 return node;150 }151 152 public override void Populate(XmlNode node, IDictionary<Guid, IStorable> restoredObjects) {153 base.Populate(node, restoredObjects);154 estimatedValueMax = XmlConvert.ToDouble(node.Attributes["MaxEstimatedValue"].Value);155 estimatedValueMin = XmlConvert.ToDouble(node.Attributes["MinEstimatedValue"].Value);156 157 dataset = (Dataset)PersistenceManager.Restore(node.SelectSingleNode("Dataset"), restoredObjects);158 }159 145 } 160 146 } -
TabularUnified trunk/sources/HeuristicLab.GP.StructureIdentification/3.4/Variable.cs ¶
r1618 r1914 30 30 using HeuristicLab.Random; 31 31 using HeuristicLab.Operators; 32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 33 33 34 namespace HeuristicLab.GP.StructureIdentification { 35 36 [EmptyStorableClass] 34 37 public class Variable : FunctionBase { 35 38
Note: See TracChangeset
for help on using the changeset viewer.