Changeset 17021 for trunk/HeuristicLab.Tests/HeuristicLab-3.3/Samples/SimulatedAnnealingRastriginSampleTest.cs
- Timestamp:
- 06/18/19 23:15:13 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Tests/HeuristicLab-3.3/Samples/SimulatedAnnealingRastriginSampleTest.cs
r16565 r17021 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.SimulatedAnnealing; 25 26 using HeuristicLab.Data; 26 27 using HeuristicLab.Encodings.RealVectorEncoding; 27 28 using HeuristicLab.Optimization.Operators; 28 using HeuristicLab.Persistence.Default.Xml;29 29 using HeuristicLab.Problems.TestFunctions; 30 30 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 34 34 public class SimulatedAnnealingRastriginSampleTest { 35 35 private const string SampleFileName = "SA_Rastrigin"; 36 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 36 37 37 38 [TestMethod] … … 41 42 var sa = CreateSimulatedAnnealingRastriginSample(); 42 43 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 43 XmlGenerator.Serialize(sa, path);44 serializer.Serialize(sa, path); 44 45 } 45 46 [TestMethod]
Note: See TracChangeset
for help on using the changeset viewer.