Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/26/12 14:11:46 (13 years ago)
Author:
gkronber
Message:

#1806 improved memory usage of ChangeNodeTypeManipulation and ReplaceBranchManipulation by replacing the linq statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/SamplesTest.cs

    r7558 r7662  
    187187      ga.SetSeedRandomly.Value = false;
    188188      RunAlgorithm(ga);
    189       Assert.AreEqual(63, GetDoubleResult(ga, "BestQuality"));
    190       Assert.AreEqual(47.26, GetDoubleResult(ga, "CurrentAverageQuality"));
     189      Assert.AreEqual(67, GetDoubleResult(ga, "BestQuality"));
     190      Assert.AreEqual(45.813, GetDoubleResult(ga, "CurrentAverageQuality"));
    191191      Assert.AreEqual(0, GetDoubleResult(ga, "CurrentWorstQuality"));
    192192      Assert.AreEqual(50950, GetIntResult(ga, "EvaluatedSolutions"));
     
    238238      ga.SetSeedRandomly.Value = false;
    239239      RunAlgorithm(ga);
    240       Assert.AreEqual(0.82932035115203739, GetDoubleResult(ga, "BestQuality"));
    241       Assert.AreEqual(0.53850226351927422, GetDoubleResult(ga, "CurrentAverageQuality"));
    242       Assert.AreEqual(0, GetDoubleResult(ga, "CurrentWorstQuality"));
     240      Assert.AreEqual(0.78855594192122458, GetDoubleResult(ga, "BestQuality"), 1E-8);
     241      Assert.AreEqual(0.61395271071681523, GetDoubleResult(ga, "CurrentAverageQuality"), 1E-8);
     242      Assert.AreEqual(0, GetDoubleResult(ga, "CurrentWorstQuality"), 1E-8);
    243243      Assert.AreEqual(50950, GetIntResult(ga, "EvaluatedSolutions"));
    244244    }
     
    341341      ga.SetSeedRandomly.Value = false;
    342342      RunAlgorithm(ga);
    343       Assert.AreEqual(0.13941049901558636, GetDoubleResult(ga, "BestQuality"));
    344       Assert.AreEqual(5.7121443289014842, GetDoubleResult(ga, "CurrentAverageQuality"));
    345       Assert.AreEqual(102.59400156249991, GetDoubleResult(ga, "CurrentWorstQuality"));
     343      Assert.AreEqual(0.13775264138895371, GetDoubleResult(ga, "BestQuality"), 1E-8);
     344      Assert.AreEqual(14.232802217120254, GetDoubleResult(ga, "CurrentAverageQuality"), 1E-8);
     345      Assert.AreEqual(104.24339008411457, GetDoubleResult(ga, "CurrentWorstQuality"), 1E-8);
    346346      Assert.AreEqual(100900, GetIntResult(ga, "EvaluatedSolutions"));
    347347    }
Note: See TracChangeset for help on using the changeset viewer.