Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/03/19 19:05:37 (6 years ago)
Author:
gkronber
Message:

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

Location:
stable
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Problems.Instances.DataAnalysis

  • stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Physics/PhysicsInstanceProvider.cs

    r16264 r16495  
    2222using System;
    2323using System.Collections.Generic;
     24using HeuristicLab.Random;
    2425
    2526namespace HeuristicLab.Problems.Instances.DataAnalysis {
    26   class PhysicsInstanceProvider : ArtificialRegressionInstanceProvider {
     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
    2745    public override IEnumerable<IDataDescriptor> GetDataDescriptors() {
     46      var rand = new FastRandom(Seed);
     47
    2848      return new List<IDataDescriptor>()
    2949      {
    30          new RocketFuelFlow(123),
    31          new AircraftLift(456),
    32          new FluidDynamics(789),
    33          new AircraftMaximumLift(321)
     50         new RocketFuelFlow(rand.Next()),
     51         new AircraftLift(rand.Next()),
     52         new FluidDynamics(rand.Next()),
     53         new AircraftMaximumLift(rand.Next())
    3454      };
    35     }
    36 
    37     public override string Name { get { return "Physics Benchmark Problems"; } }
    38     public override string Description { get { return ""; } }
    39     public override Uri WebLink { get { return new Uri(@"https://arxiv.org/abs/1706.02281"); } }
    40     public override string ReferencePublication {
    41       get {
    42         return "Chen Chen, Changtong Luo, Zonglin Jiang, 2017 " +
    43 "\"A multilevel block search algorithm for fast modeling generalized separable systems.\" arXiv preprint arXiv:1706.02281, v3";
    44       }
    4555    }
    4656  }
Note: See TracChangeset for help on using the changeset viewer.