Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/03/13 23:10:19 (11 years ago)
Author:
gkronber
Message:

#2026 added two GP benchmark problems even-parity and multiplexer.

Location:
branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL.Views/3.4
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL.Views/3.4/GpdlExampleProvider.cs

    r9842 r9844  
    3434          new GpdlExampleDataDescriptor("Fibonacci", "Evolve a problem to calculate the fibonacci function.", Resources.Fib),
    3535          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),
    3638          new GpdlExampleDataDescriptor("Symbolic Regression (HEAL-style)", "A symbolic regression problem for genetic programming, using weights for variables.", Resources.symbreg_HEAL),
    3739          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  
    263263      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    264264    </Content>
     265    <None Include="Resources\Multiplexer.txt" />
     266    <None Include="Resources\EvenParity.txt" />
    265267  </ItemGroup>
    266268  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  • branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL.Views/3.4/Properties/Resources.Designer.cs

    r9674 r9844  
    22// <auto-generated>
    33//     This code was generated by a tool.
    4 //     Runtime Version:4.0.30319.18047
     4//     Runtime Version:4.0.30319.18052
    55//
    66//     Changes to this file may cause incorrect behavior and will be lost if
     
    9090       
    9191        /// <summary>
     92        ///   Looks up a localized string similar to PROBLEM EvenParity
     93        ///CODE &lt;&lt;
     94        ///  const int N = 5;
     95        ///&gt;&gt;
     96        ///
     97        ///NONTERMINALS
     98        ///  Expr&lt;&lt;bool[] d, out bool p&gt;&gt;.
     99        ///  AND&lt;&lt;bool[] d, out bool p&gt;&gt;.
     100        ///  OR&lt;&lt;bool[] d, out bool p&gt;&gt;.
     101        ///  NAND&lt;&lt;bool[] d, out bool p&gt;&gt;.
     102        ///  NOR&lt;&lt;bool[] d, out bool p&gt;&gt;.
     103        ///
     104        ///TERMINALS
     105        ///  D&lt;&lt;out int val&gt;&gt;
     106        ///    CONSTRAINTS
     107        ///      val IN SET &lt;&lt;Enumerable.Range(0, N);&gt;&gt;
     108        ///  .
     109        ///
     110        ///RULES
     111        ///  Expr&lt;&lt;bool[] d, out bool p&gt;&gt; =                           LOCAL&lt;&lt; int val = 0; &gt;&gt;
     112        ///    AND&lt;&lt;d, out p&gt;&gt;
     113        ///    | OR&lt;&lt;d, out p&gt;&gt;
     114        ///    | NAND&lt;&lt;d, out p&gt;&gt;
     115        ///    | NOR&lt;&lt;d, out p [rest of string was truncated]&quot;;.
     116        /// </summary>
     117        internal static string EvenParity {
     118            get {
     119                return ResourceManager.GetString("EvenParity", resourceCulture);
     120            }
     121        }
     122       
     123        /// <summary>
    92124        ///   Looks up a localized string similar to PROBLEM Factorial
    93125        ///CODE&lt;&lt;
     
    146178       
    147179        /// <summary>
    148         ///   Looks up a localized string similar to &lt;!-- Syntax definition of GPDL for Avalonedit syntax highlighting --&gt;
     180        ///   Looks up a localized string similar to &lt;!-- Syntax definition of GPDL for AvalonEdit syntax highlighting --&gt;
    149181        ///&lt;SyntaxDefinition name=&quot;GPDL&quot;
    150182        ///        xmlns=&quot;http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008&quot;&gt;
    151183        ///  &lt;Color name=&quot;Comment&quot; foreground=&quot;Green&quot; /&gt;
    152         ///  &lt;Color name=&quot;String&quot; foreground=&quot;Blue&quot; /&gt;
     184        ///  &lt;Color name=&quot;SourceCode&quot; foreground=&quot;SlateGray&quot; /&gt;
    153185        ///
    154186        ///  &lt;!-- This is the main ruleset. --&gt;
    155         ///  &lt;RuleSet&gt;
    156         ///    &lt;Span color=&quot;Comment&quot; multiline=&quot;true&quot; nested=&quot;true&quot;
    157         ///       begin=&quot;/\*&quot; end=&quot;\*/&quot; /&gt;
    158         ///
    159         ///    &lt;Span color=&quot;SourceCode&quot; multiline=&quot;true&quot;
    160         ///       begin=&quot;&amp;lt;&amp;lt;&quot; end=&quot;&amp;gt;&amp;gt;&quot; /&gt;
    161         ///    &lt;K [rest of string was truncated]&quot;;.
     187        ///  &lt;RuleSet ignoreCase=&quot;true&quot;&gt;
     188        ///    &lt;Span color=&quot;Comment&quot; multiline=&quot;true&quot; begin=&quot;/\*&quot; end=&quot;\*/&quot; /&gt;
     189        ///    &lt;Span color=&quot;SourceCode&quot; multiline=&quot;true&quot; begin=&quot;&amp;lt;&amp;lt;&quot; end=&quot;&amp;gt;&amp;gt;&quot;&gt;
     190        ///      &lt;RuleSe [rest of string was truncated]&quot;;.
    162191        /// </summary>
    163192        internal static string GPDL {
     
    188217       
    189218        /// <summary>
     219        ///   Looks up a localized string similar to PROBLEM Multiplexer
     220        ///
     221        ///NONTERMINALS
     222        ///  Expr&lt;&lt;bool[] d, out bool p&gt;&gt;.
     223        ///  AND&lt;&lt;bool[] d, out bool p&gt;&gt;.
     224        ///  OR&lt;&lt;bool[] d, out bool p&gt;&gt;.
     225        ///  NOT&lt;&lt;bool[] d, out bool p&gt;&gt;.
     226        ///  IF&lt;&lt;bool[] d, out bool p&gt;&gt;.
     227        ///
     228        ///TERMINALS
     229        ///  A0. A1. A2. A2. D0. D1. D2. D3. D4. D5. D6. D7.
     230        ///
     231        ///RULES
     232        ///  Expr&lt;&lt;bool[] d, out bool o&gt;&gt; =
     233        ///    AND&lt;&lt;d, out p&gt;&gt;
     234        ///    | OR&lt;&lt;d, out p&gt;&gt;
     235        ///    | NOT&lt;&lt;d, out p&gt;&gt;
     236        ///    | IF&lt;&lt;d, out p&gt;&gt;
     237        ///    | A0                                                   SEM&lt;&lt; p = d[0]; &gt;&gt;
     238        ///    | A1                                   [rest of string was truncated]&quot;;.
     239        /// </summary>
     240        internal static string Multiplexer {
     241            get {
     242                return ResourceManager.GetString("Multiplexer", resourceCulture);
     243            }
     244        }
     245       
     246        /// <summary>
    190247        ///   Looks up a localized string similar to PROBLEM SymbReg
    191248        ///
    192249        ///CODE &lt;&lt;
    193         ///  double[,] inputValues;
    194         ///  double[] targetValues;
     250        ///  double[,] x;
     251        ///  double[] y;
    195252        ///  string[] variableNames;
    196253        ///  Dictionary&lt;string,int&gt; nameToCol;
     
    204261        ///      }
    205262        ///    }
    206         ///    return data[row, nameToCol[varName]];
    207         ///  }
    208         ///
    209         ///  double RSquared(IEnumerable&lt;double&gt; [rest of string was truncated]&quot;;.
     263        ///    return x[row, nameToCol[varName]];
     264        ///  }
     265        ///
     266        ///  double RSquared(IEnumerable&lt;double&gt; xs, IEnumerable&lt;double&gt; [rest of string was truncated]&quot;;.
    210267        /// </summary>
    211268        internal static string symbreg_HEAL {
     
    218275        ///   Looks up a localized string similar to PROBLEM SymbRegKoza
    219276        ///CODE &lt;&lt;
    220         ///  double[,] inputValues;
    221         ///  double[] targetValues;
     277        ///  double[,] x;
     278        ///  double[] y;
    222279        ///  string[] variableNames;
    223280        ///  Dictionary&lt;string,int&gt; nameToCol;
     
    231288        ///      }
    232289        ///    }
    233         ///    return data[row, nameToCol[varName]];
    234         ///  }
    235         ///
    236         ///  double RSquared(IEnumerable&lt;double [rest of string was truncated]&quot;;.
     290        ///    return x[row, nameToCol[varName]];
     291        ///  }
     292        ///
     293        ///  double RSquared(IEnumerable&lt;double&gt; xs, IEnumerable&lt;double [rest of string was truncated]&quot;;.
    237294        /// </summary>
    238295        internal static string symbreg_Koza {
  • branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL.Views/3.4/Properties/Resources.resx

    r9674 r9844  
    122122    <value>..\Resources\Artificial Ant.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
    123123  </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>
    124127  <data name="Factorial" type="System.Resources.ResXFileRef, System.Windows.Forms">
    125128    <value>..\Resources\Factorial.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
     
    130133  <data name="GPDL" type="System.Resources.ResXFileRef, System.Windows.Forms">
    131134    <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>
    132138  </data>
    133139  <data name="multi_output_multiplier" type="System.Resources.ResXFileRef, System.Windows.Forms">
Note: See TracChangeset for help on using the changeset viewer.