Changeset 18127
- Timestamp:
- 12/15/21 11:02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3140_NumberSymbol/HeuristicLab.Tests/HeuristicLab-3.3/Samples/ShapeConstrainedRegressionSampleTest.cs
r17968 r18127 35 35 [TestClass] 36 36 public class ShapeConstrainedRegressionSampleTest { 37 private const string SampleFileName = "G A_Shape_Constrained_Regression";37 private const string SampleFileName = "GP_Shape_Constrained_Regression"; 38 38 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 39 39 … … 57 57 Assert.AreEqual(150200, SamplesUtils.GetIntResult(ga, "EvaluatedSolutions")); 58 58 } 59 } 60 61 [TestMethod] 62 [TestCategory("Samples.Create")] 63 [TestProperty("Time", "medium")] 64 public void CreateShapeConstrainedRegressionSampleTest() { 65 var ga = CreateShapeConstrainedRegressionSample(); 66 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 67 serializer.Serialize(ga, path); 59 68 } 60 69 … … 82 91 83 92 #region Algorithm Configuration 84 alg.Name = "Genetic Programming - Shape 93 alg.Name = "Genetic Programming - Shape-constrained Regression"; 85 94 alg.Description = "A standard genetic programming algorithm to solve a shape constrained regression problem (Radiated gravitational wave power - Feynman instance)"; 86 95 alg.Problem = problem; … … 93 102 94 103 alg.Engine = new ParallelEngine.ParallelEngine(); 104 95 105 return alg; 96 106 }
Note: See TracChangeset
for help on using the changeset viewer.