Changeset 6848 for branches/Trunk/HeuristicLab.Tests/HeuristicLab-3.3
- Timestamp:
- 09/29/11 13:22:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Trunk/HeuristicLab.Tests/HeuristicLab-3.3/SamplesTest.cs
r6844 r6848 187 187 [TestMethod] 188 188 public void RunGpArtificialAntSampleTest() { 189 var ga = CreateGpArtificialAntSample(); 189 var ga = (GeneticAlgorithm)XmlParser.Deserialize("../../SGP_SantaFe.hl"); 190 //var ga = CreateGpArtificialAntSample(); 190 191 ga.SetSeedRandomly.Value = false; 191 192 RunAlgorithm(ga); 192 Assert.AreEqual( 89, GetDoubleResult(ga, "BestQuality"));193 Assert.AreEqual( 70.974, GetDoubleResult(ga, "CurrentAverageQuality"));193 Assert.AreEqual(66, GetDoubleResult(ga, "BestQuality")); 194 Assert.AreEqual(47.249, GetDoubleResult(ga, "CurrentAverageQuality")); 194 195 Assert.AreEqual(0, GetDoubleResult(ga, "CurrentWorstQuality")); 195 196 Assert.AreEqual(50950, GetIntResult(ga, "EvaluatedSolutions")); … … 241 242 ga.SetSeedRandomly.Value = false; 242 243 RunAlgorithm(ga); 243 Assert.AreEqual(0.8 6679405518127783, GetDoubleResult(ga, "BestQuality"));244 Assert.AreEqual(0.6 6574774940005843, GetDoubleResult(ga, "CurrentAverageQuality"));244 Assert.AreEqual(0.85210077972315257, GetDoubleResult(ga, "BestQuality")); 245 Assert.AreEqual(0.60279777130086876, GetDoubleResult(ga, "CurrentAverageQuality")); 245 246 Assert.AreEqual(0, GetDoubleResult(ga, "CurrentWorstQuality")); 246 247 Assert.AreEqual(50950, GetIntResult(ga, "EvaluatedSolutions")); … … 356 357 ga.SetSeedRandomly.Value = false; 357 358 RunAlgorithm(ga); 358 Assert.AreEqual(0.1408 9062240881498, GetDoubleResult(ga, "BestQuality"));359 Assert.AreEqual( 2.6490910151578269, GetDoubleResult(ga, "CurrentAverageQuality"));360 Assert.AreEqual(10 0.62175156249987, GetDoubleResult(ga, "CurrentWorstQuality"));359 Assert.AreEqual(0.14086907039442381, GetDoubleResult(ga, "BestQuality")); 360 Assert.AreEqual(6.2259209614881534, GetDoubleResult(ga, "CurrentAverageQuality")); 361 Assert.AreEqual(102.80512656249992, GetDoubleResult(ga, "CurrentWorstQuality")); 361 362 Assert.AreEqual(100900, GetIntResult(ga, "EvaluatedSolutions")); 362 363 }
Note: See TracChangeset
for help on using the changeset viewer.