Free cookie consent management tool by TermsFeed Policy Generator

source: stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Physics/PhysicsInstanceProvider.cs @ 16495

Last change on this file since 16495 was 16495, checked in by gkronber, 5 years ago

#2957: merged r16264, r16394, r16431 from trunk to stable

File size: 2.3 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2018 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.Random;
25
26namespace HeuristicLab.Problems.Instances.DataAnalysis {
27  public class PhysicsInstanceProvider : ArtificialRegressionInstanceProvider {
28    public override string Name { get { return "Physics Benchmark Problems"; } }
29    public override string Description { get { return ""; } }
30    public override Uri WebLink { get { return new Uri(@"https://doi.org/10.1016/j.eswa.2018.05.021"); } }
31    public override string ReferencePublication {
32      get {
33        return "Chen Chen, Changtong Luo, Zonglin Jiang, \"A multilevel block building algorithm for fast modeling generalized separable systems\", Expert Systems with Applications, Volume 109, 2018, Pages 25-34 https://doi.org/10.1016/j.eswa.2018.05.021 as well as the (slightly different) pre-print on arXiv: https://arxiv.org/abs/1706.02281";
34      }
35    }
36
37    public int Seed { get; private set; }
38
39    public PhysicsInstanceProvider() : this((int)DateTime.Now.Ticks) { }
40
41    public PhysicsInstanceProvider(int seed) : base() {
42      Seed = seed;
43    }
44
45    public override IEnumerable<IDataDescriptor> GetDataDescriptors() {
46      var rand = new FastRandom(Seed);
47
48      return new List<IDataDescriptor>()
49      {
50         new RocketFuelFlow(rand.Next()),
51         new AircraftLift(rand.Next()),
52         new FluidDynamics(rand.Next()),
53         new AircraftMaximumLift(rand.Next())
54      };
55    }
56  }
57}
Note: See TracBrowser for help on using the repository browser.