- Timestamp:
- 03/26/12 14:11:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/SamplesTest.cs
r7558 r7662 187 187 ga.SetSeedRandomly.Value = false; 188 188 RunAlgorithm(ga); 189 Assert.AreEqual(6 3, GetDoubleResult(ga, "BestQuality"));190 Assert.AreEqual(4 7.26, GetDoubleResult(ga, "CurrentAverageQuality"));189 Assert.AreEqual(67, GetDoubleResult(ga, "BestQuality")); 190 Assert.AreEqual(45.813, GetDoubleResult(ga, "CurrentAverageQuality")); 191 191 Assert.AreEqual(0, GetDoubleResult(ga, "CurrentWorstQuality")); 192 192 Assert.AreEqual(50950, GetIntResult(ga, "EvaluatedSolutions")); … … 238 238 ga.SetSeedRandomly.Value = false; 239 239 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); 243 243 Assert.AreEqual(50950, GetIntResult(ga, "EvaluatedSolutions")); 244 244 } … … 341 341 ga.SetSeedRandomly.Value = false; 342 342 RunAlgorithm(ga); 343 Assert.AreEqual(0.13 941049901558636, GetDoubleResult(ga, "BestQuality"));344 Assert.AreEqual( 5.7121443289014842, GetDoubleResult(ga, "CurrentAverageQuality"));345 Assert.AreEqual(10 2.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); 346 346 Assert.AreEqual(100900, GetIntResult(ga, "EvaluatedSolutions")); 347 347 }
Note: See TracChangeset
for help on using the changeset viewer.