Changeset 17174 for stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Physics/AircraftLift.cs
- Timestamp:
- 07/26/19 12:38:13 (5 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk merged: 17092-17094,17150
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.Instances.DataAnalysis
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Problems.Instances.DataAnalysis merged: 17092-17094,17150
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Physics/AircraftLift.cs
r17097 r17174 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Random; 26 27 27 28 namespace HeuristicLab.Problems.Instances.DataAnalysis { 28 29 public class AircraftLift : ArtificialRegressionDataDescriptor { 29 public override string Name { get { return "Aircraft Lift Coefficient C_L = C_L a (a - a0) + C_Ld_e d_e S_HT / S_ref"; } }30 public override string Name { get { return "Aircraft Lift Coefficient C_L = C_Lα (α - α0) + C_Lδ_e δ_e S_HT / S_ref"; } } 30 31 31 32 public override string Description { … … 35 36 "modeling generalized separable systems\", Expert Systems with Applications, Volume 109, 2018, " + 36 37 "Pages 25-34 https://doi.org/10.1016/j.eswa.2018.05.021. " + Environment.NewLine + 37 "Function: C_L = C_L a (a - a0) + C_Ld_e d_e S_HT / S_ref" + Environment.NewLine +38 " with C_La∈ [0.4, 0.8]," + Environment.NewLine +39 " a∈ [5°, 10°]," + Environment.NewLine +40 " C_Ld_e ∈ [0.4, 0.8]," + Environment.NewLine +41 " d_e ∈ [5°, 10°]," + Environment.NewLine +38 "Function: C_L = C_Lα (α - α0) + C_Lδ_e δ_e S_HT / S_ref" + Environment.NewLine + 39 "the lift coefficient of the main airfoil C_Lα ∈ [0.4, 0.8]," + Environment.NewLine + 40 "tha angle of attack α ∈ [5°, 10°]," + Environment.NewLine + 41 "the lift coefficient of the horizontal tail C_Lδ_e ∈ [0.4, 0.8]," + Environment.NewLine + 42 "δ_e ∈ [5°, 10°]," + Environment.NewLine + 42 43 "S_HT ∈ [1m², 1.5m²]," + Environment.NewLine + 43 44 "S_ref ∈ [5m², 7m²]," + Environment.NewLine + 44 " a0 is set to -2°";45 "the zero-lift angle of attack α0 is set to -2°"; 45 46 } 46 47 } 47 48 48 49 protected override string TargetVariable { get { return "C_L"; } } 49 protected override string[] VariableNames { get { return new string[] { "C_L a", "a", "a0", "C_Ld_e", "d_e", "S_HT", "C_L" }; } }50 protected override string[] AllowedInputVariables { get { return new string[] { "C_L a", "a", "a0", "C_Ld_e", "d_e", "S_HT" }; } }50 protected override string[] VariableNames { get { return new string[] { "C_Lα", "α", "C_Lδ_e", "δ_e", "S_HT", "S_ref", "C_L", "C_L_noise" }; } } 51 protected override string[] AllowedInputVariables { get { return new string[] { "C_Lα", "α", "C_Lδ_e", "δ_e", "S_HT", "S_ref" }; } } 51 52 protected override int TrainingPartitionStart { get { return 0; } } 52 53 protected override int TrainingPartitionEnd { get { return 100; } } … … 73 74 var S_ref = ValueGenerator.GenerateUniformDistributedValues(rand.Next(), TestPartitionEnd, 5.0, 7.0).ToList(); 74 75 75 List<double> C_L = new List<double>(); 76 var C_L = new List<double>(); 77 var C_L_noise = new List<double>(); 76 78 data.Add(C_La); 77 79 data.Add(a); … … 81 83 data.Add(S_ref); 82 84 data.Add(C_L); 85 data.Add(C_L_noise); 83 86 84 87 double a0 = -2.0; … … 89 92 } 90 93 94 95 var sigma_noise = 0.05 * C_L.StandardDeviationPop(); 96 C_L_noise.AddRange(C_L.Select(md => md + NormalDistributedRandom.NextDouble(rand, 0, sigma_noise))); 97 91 98 return data; 92 99 }
Note: See TracChangeset
for help on using the changeset viewer.