- Timestamp:
- 07/13/17 15:04:40 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/Samples/PsoRastriginSampleTest.cs
r15223 r15228 31 31 namespace HeuristicLab.Tests { 32 32 [TestClass] 33 public class Pso SchwefelSampleTest {33 public class PsoRastriginSampleTest { 34 34 private const string SampleFileName = "PSO_Rastrigin"; 35 35 … … 51 51 if (Environment.Is64BitProcess) { 52 52 Assert.AreEqual(0, SamplesUtils.GetDoubleResult(pso, "BestQuality")); 53 Assert.AreEqual(3.9649516110677525, SamplesUtils.GetDoubleResult(pso, "CurrentAverageQuality") );54 Assert.AreEqual(25.566430359483757, SamplesUtils.GetDoubleResult(pso, "CurrentWorstQuality") );53 Assert.AreEqual(3.9649516110677525, SamplesUtils.GetDoubleResult(pso, "CurrentAverageQuality"), 1e-08); 54 Assert.AreEqual(25.566430359483757, SamplesUtils.GetDoubleResult(pso, "CurrentWorstQuality"), 1e-08); 55 55 Assert.AreEqual(200, SamplesUtils.GetIntResult(pso, "Iterations")); 56 56 } else { 57 57 Assert.AreEqual(0, SamplesUtils.GetDoubleResult(pso, "BestQuality")); 58 Assert.AreEqual(3.3957460831564048, SamplesUtils.GetDoubleResult(pso, "CurrentAverageQuality") );59 Assert.AreEqual(34.412788077766145, SamplesUtils.GetDoubleResult(pso, "CurrentWorstQuality") );58 Assert.AreEqual(3.3957460831564048, SamplesUtils.GetDoubleResult(pso, "CurrentAverageQuality"), 1e-08); 59 Assert.AreEqual(34.412788077766145, SamplesUtils.GetDoubleResult(pso, "CurrentWorstQuality"), 1e-08); 60 60 Assert.AreEqual(200, SamplesUtils.GetIntResult(pso, "Iterations")); 61 61 }
Note: See TracChangeset
for help on using the changeset viewer.