- Timestamp:
- 08/03/13 23:10:19 (11 years ago)
- Location:
- branches/HeuristicLab.Problems.GPDL
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL.Views/3.4/GpdlExampleProvider.cs
r9842 r9844 34 34 new GpdlExampleDataDescriptor("Fibonacci", "Evolve a problem to calculate the fibonacci function.", Resources.Fib), 35 35 new GpdlExampleDataDescriptor("Multi-output multiplier", "Evolve a multi-output multiplier.", Resources.multi_output_multiplier), 36 new GpdlExampleDataDescriptor("Even parity", "The even parity (4) benchmark problem.", Resources.EvenParity), 37 new GpdlExampleDataDescriptor("Multiplexer (11)", "The Mux-11 multiplexer benchmark problem.", Resources.Multiplexer), 36 38 new GpdlExampleDataDescriptor("Symbolic Regression (HEAL-style)", "A symbolic regression problem for genetic programming, using weights for variables.", Resources.symbreg_HEAL), 37 39 new GpdlExampleDataDescriptor("Symbolic Regression (Koza-style)", "Koza-style symbolic regression problem for genetic programming.", Resources.symbreg_Koza), -
branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL.Views/3.4/HeuristicLab.Problems.GPDL.Views-3.4.csproj
r9674 r9844 263 263 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 264 264 </Content> 265 <None Include="Resources\Multiplexer.txt" /> 266 <None Include="Resources\EvenParity.txt" /> 265 267 </ItemGroup> 266 268 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> -
branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL.Views/3.4/Properties/Resources.Designer.cs
r9674 r9844 2 2 // <auto-generated> 3 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.180 474 // Runtime Version:4.0.30319.18052 5 5 // 6 6 // Changes to this file may cause incorrect behavior and will be lost if … … 90 90 91 91 /// <summary> 92 /// Looks up a localized string similar to PROBLEM EvenParity 93 ///CODE << 94 /// const int N = 5; 95 ///>> 96 /// 97 ///NONTERMINALS 98 /// Expr<<bool[] d, out bool p>>. 99 /// AND<<bool[] d, out bool p>>. 100 /// OR<<bool[] d, out bool p>>. 101 /// NAND<<bool[] d, out bool p>>. 102 /// NOR<<bool[] d, out bool p>>. 103 /// 104 ///TERMINALS 105 /// D<<out int val>> 106 /// CONSTRAINTS 107 /// val IN SET <<Enumerable.Range(0, N);>> 108 /// . 109 /// 110 ///RULES 111 /// Expr<<bool[] d, out bool p>> = LOCAL<< int val = 0; >> 112 /// AND<<d, out p>> 113 /// | OR<<d, out p>> 114 /// | NAND<<d, out p>> 115 /// | NOR<<d, out p [rest of string was truncated]";. 116 /// </summary> 117 internal static string EvenParity { 118 get { 119 return ResourceManager.GetString("EvenParity", resourceCulture); 120 } 121 } 122 123 /// <summary> 92 124 /// Looks up a localized string similar to PROBLEM Factorial 93 125 ///CODE<< … … 146 178 147 179 /// <summary> 148 /// Looks up a localized string similar to <!-- Syntax definition of GPDL for Avalon edit syntax highlighting -->180 /// Looks up a localized string similar to <!-- Syntax definition of GPDL for AvalonEdit syntax highlighting --> 149 181 ///<SyntaxDefinition name="GPDL" 150 182 /// xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008"> 151 183 /// <Color name="Comment" foreground="Green" /> 152 /// <Color name="S tring" foreground="Blue" />184 /// <Color name="SourceCode" foreground="SlateGray" /> 153 185 /// 154 186 /// <!-- This is the main ruleset. --> 155 /// <RuleSet> 156 /// <Span color="Comment" multiline="true" nested="true" 157 /// begin="/\*" end="\*/" /> 158 /// 159 /// <Span color="SourceCode" multiline="true" 160 /// begin="&lt;&lt;" end="&gt;&gt;" /> 161 /// <K [rest of string was truncated]";. 187 /// <RuleSet ignoreCase="true"> 188 /// <Span color="Comment" multiline="true" begin="/\*" end="\*/" /> 189 /// <Span color="SourceCode" multiline="true" begin="&lt;&lt;" end="&gt;&gt;"> 190 /// <RuleSe [rest of string was truncated]";. 162 191 /// </summary> 163 192 internal static string GPDL { … … 188 217 189 218 /// <summary> 219 /// Looks up a localized string similar to PROBLEM Multiplexer 220 /// 221 ///NONTERMINALS 222 /// Expr<<bool[] d, out bool p>>. 223 /// AND<<bool[] d, out bool p>>. 224 /// OR<<bool[] d, out bool p>>. 225 /// NOT<<bool[] d, out bool p>>. 226 /// IF<<bool[] d, out bool p>>. 227 /// 228 ///TERMINALS 229 /// A0. A1. A2. A2. D0. D1. D2. D3. D4. D5. D6. D7. 230 /// 231 ///RULES 232 /// Expr<<bool[] d, out bool o>> = 233 /// AND<<d, out p>> 234 /// | OR<<d, out p>> 235 /// | NOT<<d, out p>> 236 /// | IF<<d, out p>> 237 /// | A0 SEM<< p = d[0]; >> 238 /// | A1 [rest of string was truncated]";. 239 /// </summary> 240 internal static string Multiplexer { 241 get { 242 return ResourceManager.GetString("Multiplexer", resourceCulture); 243 } 244 } 245 246 /// <summary> 190 247 /// Looks up a localized string similar to PROBLEM SymbReg 191 248 /// 192 249 ///CODE << 193 /// double[,] inputValues;194 /// double[] targetValues;250 /// double[,] x; 251 /// double[] y; 195 252 /// string[] variableNames; 196 253 /// Dictionary<string,int> nameToCol; … … 204 261 /// } 205 262 /// } 206 /// return data[row, nameToCol[varName]];207 /// } 208 /// 209 /// double RSquared(IEnumerable<double> [rest of string was truncated]";.263 /// return x[row, nameToCol[varName]]; 264 /// } 265 /// 266 /// double RSquared(IEnumerable<double> xs, IEnumerable<double> [rest of string was truncated]";. 210 267 /// </summary> 211 268 internal static string symbreg_HEAL { … … 218 275 /// Looks up a localized string similar to PROBLEM SymbRegKoza 219 276 ///CODE << 220 /// double[,] inputValues;221 /// double[] targetValues;277 /// double[,] x; 278 /// double[] y; 222 279 /// string[] variableNames; 223 280 /// Dictionary<string,int> nameToCol; … … 231 288 /// } 232 289 /// } 233 /// return data[row, nameToCol[varName]];234 /// } 235 /// 236 /// double RSquared(IEnumerable<double [rest of string was truncated]";.290 /// return x[row, nameToCol[varName]]; 291 /// } 292 /// 293 /// double RSquared(IEnumerable<double> xs, IEnumerable<double [rest of string was truncated]";. 237 294 /// </summary> 238 295 internal static string symbreg_Koza { -
branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL.Views/3.4/Properties/Resources.resx
r9674 r9844 122 122 <value>..\Resources\Artificial Ant.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value> 123 123 </data> 124 <data name="EvenParity" type="System.Resources.ResXFileRef, System.Windows.Forms"> 125 <value>..\resources\evenparity.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value> 126 </data> 124 127 <data name="Factorial" type="System.Resources.ResXFileRef, System.Windows.Forms"> 125 128 <value>..\Resources\Factorial.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value> … … 130 133 <data name="GPDL" type="System.Resources.ResXFileRef, System.Windows.Forms"> 131 134 <value>..\Resources\GPDL.xshd;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> 135 </data> 136 <data name="Multiplexer" type="System.Resources.ResXFileRef, System.Windows.Forms"> 137 <value>..\resources\multiplexer.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value> 132 138 </data> 133 139 <data name="multi_output_multiplier" type="System.Resources.ResXFileRef, System.Windows.Forms"> -
branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL/3.4/GPDef.atg
r9843 r9844 141 141 tNode = null; 142 142 TerminalNode myTNode = null; 143 IEnumerableConstraintNode constraints = n ull;143 IEnumerableConstraintNode constraints = new List<ConstraintNode>(); 144 144 string src = ""; 145 145 .) … … 152 152 myTNode.FieldDefinitions = SourceReader.ExtractFormalParameters(src); 153 153 .) 154 [ "CONSTRAINTS" ConstraintDef<out constraints> (. myTNode.Constraints = constraints; .)155 ] 154 [ "CONSTRAINTS" ConstraintDef<out constraints> 155 ] (. myTNode.Constraints = constraints; .) 156 156 '.' 157 157 . -
branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL/3.4/Parser.cs
r9843 r9844 206 206 tNode = null; 207 207 TerminalNode myTNode = null; 208 IEnumerableConstraintNode constraints = n ull;208 IEnumerableConstraintNode constraints = new List<ConstraintNode>(); 209 209 string src = ""; 210 210 … … 223 223 Get(); 224 224 ConstraintDef(out constraints); 225 myTNode.Constraints = constraints;226 }225 } 226 myTNode.Constraints = constraints; 227 227 Expect(13); 228 228 } -
branches/HeuristicLab.Problems.GPDL/Test/Test.csproj
r9843 r9844 22 22 <DebugType>full</DebugType> 23 23 <Optimize>false</Optimize> 24 <OutputPath>..\ ..\..\..\trunk\sources\bin\</OutputPath>24 <OutputPath>..\trunk\sources\bin\</OutputPath> 25 25 <DefineConstants>DEBUG;TRACE</DefineConstants> 26 26 <ErrorReport>prompt</ErrorReport> … … 30 30 <DebugType>pdbonly</DebugType> 31 31 <Optimize>true</Optimize> 32 <OutputPath>..\..\..\ ..\trunk\sources\bin\</OutputPath>32 <OutputPath>..\..\..\trunk\sources\bin\</OutputPath> 33 33 <DefineConstants>TRACE</DefineConstants> 34 34 <ErrorReport>prompt</ErrorReport> … … 38 38 <Reference Include="ALGLIB-3.7.0"> 39 39 <HintPath>..\..\..\trunk\sources\bin\ALGLIB-3.7.0.dll</HintPath> 40 <Private>True</Private> 40 41 </Reference> 41 42 <Reference Include="HeuristicLab.Algorithms.GeneticAlgorithm-3.3"> 42 43 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Algorithms.GeneticAlgorithm-3.3.dll</HintPath> 44 <Private>True</Private> 43 45 </Reference> 44 46 <Reference Include="HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm-3.3"> 45 47 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm-3.3.dll</HintPath> 48 <Private>True</Private> 46 49 </Reference> 47 50 <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 48 51 <SpecificVersion>False</SpecificVersion> 49 52 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Common-3.3.dll</HintPath> 53 <Private>True</Private> 50 54 </Reference> 51 55 <Reference Include="HeuristicLab.Core-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 52 56 <SpecificVersion>False</SpecificVersion> 53 57 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Core-3.3.dll</HintPath> 58 <Private>True</Private> 54 59 </Reference> 55 60 <Reference Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4"> 56 61 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.dll</HintPath> 62 <Private>True</Private> 57 63 </Reference> 58 64 <Reference Include="HeuristicLab.Operators-3.3"> 59 65 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Operators-3.3.dll</HintPath> 66 <Private>True</Private> 60 67 </Reference> 61 68 <Reference Include="HeuristicLab.Optimization-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 62 69 <SpecificVersion>False</SpecificVersion> 63 70 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Optimization-3.3.dll</HintPath> 71 <Private>True</Private> 64 72 </Reference> 65 73 <Reference Include="HeuristicLab.Optimization.Operators-3.3"> 66 74 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Optimization.Operators-3.3.dll</HintPath> 75 <Private>True</Private> 67 76 </Reference> 68 77 <Reference Include="HeuristicLab.ParallelEngine-3.3"> 69 78 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.ParallelEngine-3.3.dll</HintPath> 79 <Private>True</Private> 70 80 </Reference> 71 81 <Reference Include="HeuristicLab.Problems.DataAnalysis-3.4"> 72 82 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Problems.DataAnalysis-3.4.dll</HintPath> 83 <Private>True</Private> 73 84 </Reference> 74 85 <Reference Include="HeuristicLab.Problems.Instances-3.3"> 75 86 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Problems.Instances-3.3.dll</HintPath> 87 <Private>True</Private> 76 88 </Reference> 77 89 <Reference Include="HeuristicLab.Problems.Instances.DataAnalysis-3.3"> 78 90 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Problems.Instances.DataAnalysis-3.3.dll</HintPath> 91 <Private>True</Private> 79 92 </Reference> 80 93 <Reference Include="HeuristicLab.Random-3.3"> 81 94 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Random-3.3.dll</HintPath> 95 <Private>True</Private> 82 96 </Reference> 83 97 <Reference Include="HeuristicLab.SequentialEngine-3.3"> 84 98 <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.SequentialEngine-3.3.dll</HintPath> 99 <Private>True</Private> 85 100 </Reference> 86 101 <Reference Include="System" /> … … 107 122 <Project>{3f9e665a-3dcb-49c3-8806-0e47fc48ea52}</Project> 108 123 <Name>HeuristicLab.Problems.GPDL.Views-3.4</Name> 124 <Private>True</Private> 109 125 </ProjectReference> 110 126 <ProjectReference Include="..\HeuristicLab.Problems.GPDL\3.4\HeuristicLab.Problems.GPDL-3.4.csproj"> 111 127 <Project>{E4EE5AFB-D552-447B-8A16-6CBE7938AF32}</Project> 112 128 <Name>HeuristicLab.Problems.GPDL-3.4</Name> 129 <Private>True</Private> 113 130 </ProjectReference> 114 131 </ItemGroup>
Note: See TracChangeset
for help on using the changeset viewer.