Changeset 17105 for stable/HeuristicLab.Tests/HeuristicLab-3.3/Samples/SimulatedAnnealingRastriginSampleTest.cs
- Timestamp:
- 07/08/19 00:23:12 (5 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
-
stable/HeuristicLab.Tests
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Tests merged: 16585,16594,16625,16658,16906,16908,16997,17021,17024
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Tests/HeuristicLab-3.3/Samples/SimulatedAnnealingRastriginSampleTest.cs
r17097 r17105 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.