Changeset 17035 for branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples
- Timestamp:
- 06/26/19 08:13:50 (5 years ago)
- Location:
- branches/2925_AutoDiffForDynamicalModels
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2925_AutoDiffForDynamicalModels
- Property svn:mergeinfo changed
/trunk merged: 17007-17009,17014-17016,17019-17024,17028,17030,17032-17033
- Property svn:mergeinfo changed
-
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Tests merged: 17019,17021,17024,17033
- Property svn:mergeinfo changed
-
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/AlpsSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.ALPS; 25 26 using HeuristicLab.Encodings.PermutationEncoding; 26 27 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 using HeuristicLab.Persistence.Default.Xml;28 28 using HeuristicLab.Problems.DataAnalysis.Symbolic; 29 29 using HeuristicLab.Problems.DataAnalysis.Symbolic.Regression; … … 40 40 private const string SymRegSampleFileName = "ALPSGP_SymReg"; 41 41 42 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 43 42 44 [TestMethod] 43 45 [TestCategory("Samples.Create")] … … 46 48 var alpsGa = CreateAlpsGaTspSample(); 47 49 string path = Path.Combine(SamplesUtils.SamplesDirectory, TspSampleFileName + SamplesUtils.SampleFileExtension); 48 XmlGenerator.Serialize(alpsGa, path);50 serializer.Serialize(alpsGa, path); 49 51 } 50 52 … … 55 57 var alpsGa = CreateAlpsGaSymRegSample(); 56 58 string path = Path.Combine(SamplesUtils.SamplesDirectory, SymRegSampleFileName + SamplesUtils.SampleFileExtension); 57 XmlGenerator.Serialize(alpsGa, path);59 serializer.Serialize(alpsGa, path); 58 60 } 59 61 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/EsGriewankSampleTest.cs
r16662 r17035 21 21 22 22 using System.IO; 23 using HEAL.Attic; 23 24 using HeuristicLab.Algorithms.EvolutionStrategy; 24 25 using HeuristicLab.Data; 25 26 using HeuristicLab.Encodings.RealVectorEncoding; 26 using HeuristicLab.Persistence.Default.Xml;27 27 using HeuristicLab.Problems.TestFunctions; 28 28 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 33 33 private const string SampleFileName = "ES_Griewank"; 34 34 35 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 36 35 37 [TestMethod] 36 38 [TestCategory("Samples.Create")] … … 39 41 var es = CreateEsGriewankSample(); 40 42 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 41 XmlGenerator.Serialize(es, path);43 serializer.Serialize(es, path); 42 44 } 43 45 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GABppSampleTest.cs
r16662 r17035 21 21 22 22 using System.IO; 23 using System.Linq;23 using HEAL.Attic; 24 24 using HeuristicLab.Algorithms.GeneticAlgorithm; 25 25 using HeuristicLab.Encodings.PermutationEncoding; 26 using HeuristicLab.Persistence.Default.Xml;27 26 using HeuristicLab.Problems.BinPacking3D; 28 27 using HeuristicLab.Selection; … … 34 33 private const string SampleFileName = "GA_BPP"; 35 34 35 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 36 36 37 [TestMethod] 37 38 [TestCategory("Samples.Create")] … … 40 41 var ga = CreateGaBppSample(); 41 42 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 42 XmlGenerator.Serialize(ga, path);43 serializer.Serialize(ga, path); 43 44 } 44 45 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GAGroupingProblemSampleTest.cs
r16662 r17035 21 21 22 22 using System.IO; 23 using HEAL.Attic; 23 24 using HeuristicLab.Algorithms.GeneticAlgorithm; 24 25 using HeuristicLab.Encodings.LinearLinkageEncoding; 25 using HeuristicLab.Persistence.Default.Xml;26 26 using HeuristicLab.Problems.Programmable; 27 27 using HeuristicLab.Selection; … … 32 32 public class GAGroupingProblemSampleTest { 33 33 private const string SampleFileName = "GA_Grouping"; 34 35 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 36 34 37 #region Code 35 38 private const string ProblemCode = @" … … 96 99 var ga = CreateGaGroupingProblemSample(); 97 100 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 98 XmlGenerator.Serialize(ga, path);101 serializer.Serialize(ga, path); 99 102 } 100 103 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GATspSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.GeneticAlgorithm; 25 26 using HeuristicLab.Encodings.PermutationEncoding; 26 using HeuristicLab.Persistence.Default.Xml;27 27 using HeuristicLab.Problems.Instances.TSPLIB; 28 28 using HeuristicLab.Problems.TravelingSalesman; … … 35 35 private const string SampleFileName = "GA_TSP"; 36 36 37 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 38 37 39 [TestMethod] 38 40 [TestCategory("Samples.Create")] … … 41 43 var ga = CreateGaTspSample(); 42 44 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 43 XmlGenerator.Serialize(ga, path);45 serializer.Serialize(ga, path); 44 46 } 45 47 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GAVrpSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.GeneticAlgorithm; 25 using HeuristicLab.Persistence.Default.Xml;26 26 using HeuristicLab.Problems.Instances; 27 27 using HeuristicLab.Problems.Instances.VehicleRouting; … … 38 38 private const string SampleFileName = "GA_VRP"; 39 39 40 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 41 40 42 [TestMethod] 41 43 [TestCategory("Samples.Create")] … … 44 46 var ga = CreateGaVrpSample(); 45 47 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 46 XmlGenerator.Serialize(ga, path);48 serializer.Serialize(ga, path); 47 49 } 48 50 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPArtificialAntSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.GeneticAlgorithm; 25 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 26 using HeuristicLab.Persistence.Default.Xml;27 27 using HeuristicLab.Problems.GeneticProgramming.ArtificialAnt; 28 28 using HeuristicLab.Selection; … … 34 34 private const string SampleFileName = "SGP_SantaFe"; 35 35 36 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 37 36 38 [TestMethod] 37 39 [TestCategory("Samples.Create")] … … 40 42 var ga = CreateGpArtificialAntSample(); 41 43 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 42 XmlGenerator.Serialize(ga, path);44 serializer.Serialize(ga, path); 43 45 } 44 46 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPMultiplexerSampleTest.cs
r16662 r17035 21 21 22 22 using System.IO; 23 using HEAL.Attic; 23 24 using HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm; 24 25 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 25 using HeuristicLab.Persistence.Default.Xml;26 26 using HeuristicLab.Selection; 27 27 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 32 private const string SampleFileName = "GP_Multiplexer"; 33 33 34 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 35 34 36 [TestMethod] 35 37 [TestCategory("Samples.Create")] … … 38 40 var ga = CreateGpMultiplexerSample(); 39 41 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 40 XmlGenerator.Serialize(ga, path);42 serializer.Serialize(ga, path); 41 43 } 42 44 [TestMethod] -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPRobocodeSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.GeneticAlgorithm; 25 26 using HeuristicLab.Data; 26 27 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 27 using HeuristicLab.Persistence.Default.Xml;28 28 using HeuristicLab.Problems.GeneticProgramming.Robocode; 29 29 using HeuristicLab.Selection; … … 35 35 private const string SampleFileName = "SGP_Robocode"; 36 36 37 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 38 37 39 [TestMethod] 38 40 [TestCategory("Samples.Create")] … … 41 43 var ga = CreateGpRobocodeSample(); 42 44 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 43 XmlGenerator.Serialize(ga, path);45 serializer.Serialize(ga, path); 44 46 } 45 47 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPSymbolicClassificationSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.GeneticAlgorithm; 25 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 26 using HeuristicLab.Persistence.Default.Xml;27 27 using HeuristicLab.Problems.DataAnalysis; 28 28 using HeuristicLab.Problems.DataAnalysis.Symbolic; … … 37 37 private const string SampleFileName = "SGP_SymbClass"; 38 38 39 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 40 39 41 [TestMethod] 40 42 [TestCategory("Samples.Create")] … … 43 45 var ga = CreateGpSymbolicClassificationSample(); 44 46 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 45 XmlGenerator.Serialize(ga, path);47 serializer .Serialize(ga, path); 46 48 } 47 49 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPSymbolicRegressionSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.GeneticAlgorithm; 25 26 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 26 using HeuristicLab.Persistence.Default.Xml;27 27 using HeuristicLab.Problems.DataAnalysis; 28 28 using HeuristicLab.Problems.DataAnalysis.Symbolic; … … 37 37 private const string SampleFileName = "SGP_SymbReg"; 38 38 39 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 40 39 41 [TestMethod] 40 42 [TestCategory("Samples.Create")] … … 43 45 var ga = CreateGpSymbolicRegressionSample(); 44 46 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 45 XmlGenerator.Serialize(ga, path);47 serializer.Serialize(ga, path); 46 48 } 47 49 [TestMethod] -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPSymbolicRegressionSampleWithOSTest.cs
r16892 r17035 24 24 using System.IO; 25 25 using System.Linq; 26 using HEAL.Attic; 26 27 using HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm; 27 28 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 28 using HeuristicLab.Persistence.Default.Xml;29 29 using HeuristicLab.Problems.DataAnalysis; 30 30 using HeuristicLab.Problems.DataAnalysis.Symbolic; … … 40 40 private const int seed = 12345; 41 41 42 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 43 42 44 [TestMethod] 43 45 [TestCategory("Samples.Create")] … … 46 48 var osga = CreateGpSymbolicRegressionSample(); 47 49 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 48 XmlGenerator.Serialize(osga, path);50 serializer.Serialize(osga, path); 49 51 } 50 52 [TestMethod] -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPTimeSeriesSampleTest.cs
r16662 r17035 21 21 22 22 using System.IO; 23 using HEAL.Attic; 23 24 using HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm; 24 25 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 25 using HeuristicLab.Persistence.Default.Xml;26 26 using HeuristicLab.Problems.DataAnalysis.Symbolic; 27 27 using HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis; … … 34 34 private const string SampleFileName = "OSGP_TimeSeries"; 35 35 36 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 37 36 38 [TestMethod] 37 39 [TestCategory("Samples.Create")] … … 40 42 var ga = CreateGpTimeSeriesSample(); 41 43 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 42 XmlGenerator.Serialize(ga, path);44 serializer.Serialize(ga, path); 43 45 } 44 46 [TestMethod] -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GaussianProcessRegressionSampleTest.cs
r16892 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.DataAnalysis; 25 using HeuristicLab.Persistence.Default.Xml;26 26 using HeuristicLab.Problems.DataAnalysis; 27 27 using HeuristicLab.Problems.Instances.DataAnalysis; … … 33 33 private const string SampleFileName = "GPR"; 34 34 35 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 36 35 37 [TestMethod] 36 38 [TestCategory("Samples.Create")] … … 39 41 var gpr = CreateGaussianProcessRegressionSample(); 40 42 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 41 XmlGenerator.Serialize(gpr, path);43 serializer.Serialize(gpr, path); 42 44 } 43 45 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GeSymbolicRegressionSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm; 25 using HeuristicLab.Persistence.Default.Xml;26 26 using HeuristicLab.Problems.DataAnalysis.Symbolic; 27 27 using HeuristicLab.Problems.Instances.DataAnalysis; … … 32 32 [TestClass] 33 33 public class GeSymbolicRegressionSampleTest { 34 35 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 36 34 37 #region artificial ant 35 38 private const string GeArtificialAntSampleFileName = "GE_ArtificialAnt"; … … 41 44 var geaa = CreateGeArtificialAntSample(); 42 45 string path = Path.Combine(SamplesUtils.SamplesDirectory, GeArtificialAntSampleFileName + SamplesUtils.SampleFileExtension); 43 XmlGenerator.Serialize(geaa, path);46 serializer.Serialize(geaa, path); 44 47 } 45 48 … … 80 83 var geSymbReg = CreateGeSymbolicRegressionSample(); 81 84 string path = Path.Combine(SamplesUtils.SamplesDirectory, GeSymbolicRegressionSampleFileName + SamplesUtils.SampleFileExtension); 82 XmlGenerator.Serialize(geSymbReg, path);85 serializer.Serialize(geSymbReg, path); 83 86 } 84 87 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/IslandGaTspSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.GeneticAlgorithm; 25 26 using HeuristicLab.Encodings.PermutationEncoding; 26 27 using HeuristicLab.Optimization.Operators; 27 using HeuristicLab.Persistence.Default.Xml;28 28 using HeuristicLab.Problems.Instances.TSPLIB; 29 29 using HeuristicLab.Problems.TravelingSalesman; … … 35 35 public class UnitTest1 { 36 36 private const string SampleFileName = "IslandGA_TSP"; 37 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 37 38 38 39 [TestMethod] … … 42 43 var ga = CreateIslandGaTspSample(); 43 44 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 44 XmlGenerator.Serialize(ga, path);45 serializer.Serialize(ga, path); 45 46 } 46 47 [TestMethod] -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/LocalSearchKnapsackSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.LocalSearch; 25 26 using HeuristicLab.Data; 26 27 using HeuristicLab.Encodings.BinaryVectorEncoding; 27 using HeuristicLab.Persistence.Default.Xml;28 28 using HeuristicLab.Problems.Knapsack; 29 29 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 33 33 public class LocalSearchKnapsackSampleTest { 34 34 private const string SampleFileName = "LS_Knapsack"; 35 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 35 36 36 37 [TestMethod] … … 40 41 var ls = CreateLocalSearchKnapsackSample(); 41 42 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 42 XmlGenerator.Serialize(ls, path);43 serializer.Serialize(ls, path); 43 44 } 44 45 [TestMethod] -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/OSESGriewankSampleTest.cs
r16662 r17035 21 21 22 22 using System.IO; 23 using H euristicLab.Algorithms.EvolutionStrategy;23 using HEAL.Attic; 24 24 using HeuristicLab.Algorithms.OffspringSelectionEvolutionStrategy; 25 25 using HeuristicLab.Data; 26 26 using HeuristicLab.Encodings.RealVectorEncoding; 27 using HeuristicLab.Persistence.Default.Xml;28 27 using HeuristicLab.Problems.TestFunctions; 29 28 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 33 32 public class OSESGriewankSampleTest { 34 33 private const string SampleFileName = "OSES_Griewank"; 34 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 35 35 36 36 [TestMethod] … … 40 40 var es = CreateOSESGriewankSample(); 41 41 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 42 XmlGenerator.Serialize(es, path);42 serializer.Serialize(es, path); 43 43 } 44 44 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/PsoRastriginSampleTest.cs
r16662 r17035 23 23 using System.IO; 24 24 using System.Linq; 25 using HEAL.Attic; 25 26 using HeuristicLab.Algorithms.ParticleSwarmOptimization; 26 27 using HeuristicLab.Encodings.RealVectorEncoding; 27 using HeuristicLab.Persistence.Default.Xml;28 28 using HeuristicLab.Problems.TestFunctions; 29 29 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 33 33 public class PsoRastriginSampleTest { 34 34 private const string SampleFileName = "PSO_Rastrigin"; 35 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 35 36 36 37 [TestMethod] … … 40 41 var pso = CreatePsoRastriginSample(); 41 42 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 42 XmlGenerator.Serialize(pso, path);43 serializer.Serialize(pso, path); 43 44 } 44 45 [TestMethod] -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/RAPGASchedulingSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.RAPGA; 25 26 using HeuristicLab.Encodings.ScheduleEncoding.JobSequenceMatrix; 26 using HeuristicLab.Persistence.Default.Xml;27 27 using HeuristicLab.Problems.Scheduling; 28 28 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 32 32 public class RAPGASchedulingSampleTest { 33 33 private const string SampleFileName = "RAPGA_JSSP"; 34 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 34 35 35 36 [TestMethod] … … 39 40 var ss = CreateRAPGASchedulingSample(); 40 41 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 41 XmlGenerator.Serialize(ss, path);42 serializer.Serialize(ss, path); 42 43 } 43 44 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/ScatterSearchVRPSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.ScatterSearch; 25 using HeuristicLab.Persistence.Default.Xml;26 26 using HeuristicLab.Problems.Instances.VehicleRouting; 27 27 using HeuristicLab.Problems.VehicleRouting; … … 32 32 public class ScatterSearchVRPSampleTest { 33 33 private const string SampleFileName = "SS_VRP"; 34 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 34 35 35 36 [TestMethod] … … 39 40 var ss = CreateScatterSearchVRPSample(); 40 41 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 41 XmlGenerator.Serialize(ss, path);42 serializer.Serialize(ss, path); 42 43 } 43 44 -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/SimulatedAnnealingRastriginSampleTest.cs
r16662 r17035 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] -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/TabuSearchTspSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.TabuSearch; 25 26 using HeuristicLab.Encodings.PermutationEncoding; 26 using HeuristicLab.Persistence.Default.Xml;27 27 using HeuristicLab.Problems.Instances.TSPLIB; 28 28 using HeuristicLab.Problems.TravelingSalesman; … … 33 33 public class TabuSearchTspSampleTest { 34 34 private const string SampleFileName = "TS_TSP"; 35 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 35 36 36 37 [TestMethod] … … 40 41 var ts = CreateTabuSearchTspSample(); 41 42 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 42 XmlGenerator.Serialize(ts, path);43 serializer.Serialize(ts, path); 43 44 } 44 45 [TestMethod] -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/TabuSearchVRPSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.TabuSearch; 25 using HeuristicLab.Persistence.Default.Xml;26 26 using HeuristicLab.Problems.Instances.VehicleRouting; 27 27 using HeuristicLab.Problems.VehicleRouting; … … 33 33 public class TabuSearchVRPSampleTest { 34 34 private const string SampleFileName = "TS_VRP"; 35 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 35 36 36 37 [TestMethod] … … 40 41 var vrp = CreateTabuSearchVrpSample(); 41 42 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 42 XmlGenerator.Serialize(vrp, path);43 serializer.Serialize(vrp, path); 43 44 } 44 45 [TestMethod] -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/VnsOpSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.VariableNeighborhoodSearch; 25 26 using HeuristicLab.Data; 26 27 using HeuristicLab.Encodings.IntegerVectorEncoding; 27 using HeuristicLab.Persistence.Default.Xml;28 28 using HeuristicLab.Problems.Orienteering; 29 29 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 33 33 public class VnsOpSampleTest { 34 34 private const string SampleFileName = "VNS_OP"; 35 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 35 36 36 37 [TestMethod] … … 40 41 var vns = CreateVnsOpSample(); 41 42 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 42 XmlGenerator.Serialize(vns, path);43 serializer.Serialize(vns, path); 43 44 } 44 45 [TestMethod] -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Tests/HeuristicLab-3.3/Samples/VnsTspSampleTest.cs
r16662 r17035 22 22 using System.IO; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Algorithms.LocalSearch; 25 26 using HeuristicLab.Algorithms.VariableNeighborhoodSearch; 26 27 using HeuristicLab.Data; 27 28 using HeuristicLab.Encodings.PermutationEncoding; 28 using HeuristicLab.Persistence.Default.Xml;29 29 using HeuristicLab.Problems.TravelingSalesman; 30 30 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 34 34 public class VnsTspSampleTest { 35 35 private const string SampleFileName = "VNS_TSP"; 36 private static readonly ProtoBufSerializer serializer = new ProtoBufSerializer(); 36 37 37 38 [TestMethod] … … 41 42 var vns = CreateVnsTspSample(); 42 43 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 43 XmlGenerator.Serialize(vns, path);44 serializer.Serialize(vns, path); 44 45 } 45 46 [TestMethod]
Note: See TracChangeset
for help on using the changeset viewer.