Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16431


Ignore:
Timestamp:
12/21/18 13:05:29 (6 years ago)
Author:
lkammere
Message:

#2957: Fixed visibility of regression instance providers for physics benchmark problems.

Location:
trunk/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Physics
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Physics/AircraftLift.cs

    r16394 r16431  
    2626
    2727namespace HeuristicLab.Problems.Instances.DataAnalysis {
    28   class AircraftLift : ArtificialRegressionDataDescriptor {
     28  public class AircraftLift : ArtificialRegressionDataDescriptor {
    2929    public override string Name { get { return "Aircraft Lift Coefficient C_L = C_La (a - a0) + C_Ld_e d_e S_HT / S_ref"; } }
    3030
  • trunk/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Physics/AircraftMaximumLift.cs

    r16394 r16431  
    2626
    2727namespace HeuristicLab.Problems.Instances.DataAnalysis {
    28   class AircraftMaximumLift : ArtificialRegressionDataDescriptor {
     28  public class AircraftMaximumLift : ArtificialRegressionDataDescriptor {
    2929    public override string Name { get { return "Aircraft Maximum Lift Coefficient f(X) = x1 - 1/4 x4 x5 x6 (4 + 0.1 x2/x3 - x2²/x3²) + x13 x14/x15 x18 x7 - x13 x14/x15 x8 + x13 x14/x15 x9 + x16 x17/x15 x18 x10 - x16 x17/x15 x11 + x16 x17/x15 x12"; } }
    3030
  • trunk/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Physics/FluidDynamics.cs

    r16394 r16431  
    2626
    2727namespace HeuristicLab.Problems.Instances.DataAnalysis {
    28   class FluidDynamics : ArtificialRegressionDataDescriptor {
     28  public class FluidDynamics : ArtificialRegressionDataDescriptor {
    2929    public override string Name { get { return "Flow Psi = V_inf r sin(th) (1 - R²/r²) + G/(2 π) ln(r/R)"; } }
    3030
  • trunk/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Physics/PhysicsInstanceProvider.cs

    r16394 r16431  
    2222using System;
    2323using System.Collections.Generic;
     24using HeuristicLab.Random;
    2425
    2526namespace HeuristicLab.Problems.Instances.DataAnalysis {
    26   class PhysicsInstanceProvider : ArtificialRegressionInstanceProvider {
    27     public override IEnumerable<IDataDescriptor> GetDataDescriptors() {
    28       return new List<IDataDescriptor>()
    29       {
    30          new RocketFuelFlow(123),
    31          new AircraftLift(456),
    32          new FluidDynamics(789),
    33          new AircraftMaximumLift(321)
    34       };
    35     }
    36 
     27  public class PhysicsInstanceProvider : ArtificialRegressionInstanceProvider {
    3728    public override string Name { get { return "Physics Benchmark Problems"; } }
    3829    public override string Description { get { return ""; } }
     
    4334      }
    4435    }
     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    }
    4556  }
    4657}
  • trunk/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Physics/RocketFuelFlow.cs

    r16394 r16431  
    2626
    2727namespace HeuristicLab.Problems.Instances.DataAnalysis {
    28   class RocketFuelFlow : ArtificialRegressionDataDescriptor {
     28  public class RocketFuelFlow : ArtificialRegressionDataDescriptor {
    2929    public override string Name { get { return "Rocket Fuel Flow m_dot = p0 A / sqrt(T0) * sqrt(γ/R (2/(γ+1))^((γ+1) / (γ-1)))"; } }
    3030
Note: See TracChangeset for help on using the changeset viewer.