Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL.Views/3.4/GpdlExampleProvider.cs @ 9844

Last change on this file since 9844 was 9844, checked in by gkronber, 11 years ago

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

File size: 3.3 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using System;
23using System.Collections.Generic;
24using HeuristicLab.Problems.GPDL.Views.Properties;
25using HeuristicLab.Problems.Instances;
26
27namespace HeuristicLab.Problems.GPDL.Views {
28  public class GpdlExampleProvider : ProblemInstanceProvider<string> {
29    public override IEnumerable<IDataDescriptor> GetDataDescriptors() {
30      return new IDataDescriptor[]
31        {
32          new GpdlExampleDataDescriptor("Artificial Ant", "The artificial ant problem.", Resources.Artificial_Ant),
33          new GpdlExampleDataDescriptor("Factorial", "Evolve a program to calculate the factorial function.", Resources.Factorial),
34          new GpdlExampleDataDescriptor("Fibonacci", "Evolve a problem to calculate the fibonacci function.", Resources.Fib),
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),
38          new GpdlExampleDataDescriptor("Symbolic Regression (HEAL-style)", "A symbolic regression problem for genetic programming, using weights for variables.", Resources.symbreg_HEAL),
39          new GpdlExampleDataDescriptor("Symbolic Regression (Koza-style)", "Koza-style symbolic regression problem for genetic programming.", Resources.symbreg_Koza),
40        };
41    }
42
43    public override string LoadData(IDataDescriptor descriptor) {
44      var gpdlDescriptor = descriptor as GpdlExampleDataDescriptor;
45      if (gpdlDescriptor == null) throw new ArgumentException("Cannot load this type of problem instance into the GPDL editor.");
46      return gpdlDescriptor.Source;
47    }
48
49    public override string Name {
50      get { return "GPDL Example Provider"; }
51    }
52
53    public override string Description {
54      get { return "Provides a set of GPDL definitions for genetic programming problems."; }
55    }
56
57    public override Uri WebLink {
58      get { return new Uri("http://dev.heuristiclab.com/GPDL"); }
59    }
60
61    public override string ReferencePublication {
62      get { return "Kronberger G., Kommenda M., Wagner S., Dobler H. - GPDL: A Framework-Independent Problem Definition Language for Grammar Guided Genetic Programming. In GECCO'13 Companion, July 6-10, 2013, Amsterdam, ACM."; }
63    }
64  }
65}
Note: See TracBrowser for help on using the repository browser.