Changeset 6928 for trunk/sources
- Timestamp:
- 10/14/11 12:33:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/SamplesTest.cs
r6922 r6928 187 187 [TestMethod] 188 188 public void RunGpArtificialAntSampleTest() { 189 var ga = (GeneticAlgorithm)XmlParser.Deserialize("../../SGP_SantaFe.hl"); 190 //var ga = CreateGpArtificialAntSample(); 189 var ga = CreateGpArtificialAntSample(); 191 190 ga.SetSeedRandomly.Value = false; 192 191 RunAlgorithm(ga); 193 Assert.AreEqual(6 8, GetDoubleResult(ga, "BestQuality"));194 Assert.AreEqual( 52.534, GetDoubleResult(ga, "CurrentAverageQuality"));192 Assert.AreEqual(63, GetDoubleResult(ga, "BestQuality")); 193 Assert.AreEqual(49.59, GetDoubleResult(ga, "CurrentAverageQuality")); 195 194 Assert.AreEqual(0, GetDoubleResult(ga, "CurrentWorstQuality")); 196 195 Assert.AreEqual(50950, GetIntResult(ga, "EvaluatedSolutions"));
Note: See TracChangeset
for help on using the changeset viewer.