Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 18179 was 17181, checked in by swagner, 5 years ago

#2875: Merged r17180 from trunk to stable

File size: 2.3 KB
RevLine 
[16264]1#region License Information
2/* HeuristicLab
[17181]3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL)
[16264]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;
[16495]24using HeuristicLab.Random;
[16264]25
26namespace HeuristicLab.Problems.Instances.DataAnalysis {
[16495]27  public class PhysicsInstanceProvider : ArtificialRegressionInstanceProvider {
[16264]28    public override string Name { get { return "Physics Benchmark Problems"; } }
29    public override string Description { get { return ""; } }
[16495]30    public override Uri WebLink { get { return new Uri(@"https://doi.org/10.1016/j.eswa.2018.05.021"); } }
[16264]31    public override string ReferencePublication {
32      get {
[16495]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";
[16264]34      }
35    }
[16495]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    }
[16264]56  }
57}
Note: See TracBrowser for help on using the repository browser.