- Timestamp:
- 07/07/20 18:09:11 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/Samples
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/Samples/EsGriewankSampleTest.cs
r17544 r17656 66 66 problem.Dimension = 10; 67 67 problem.TestFunction = new Griewank(); 68 problem.Encoding.SolutionCreator = new UniformRandomRealVectorCreator();69 68 problem.Bounds = new DoubleMatrix(new double[,] { { -600, 600 } }); 70 69 problem.BestKnownQuality = 0; -
branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/Samples/LocalSearchKnapsackSampleTest.cs
r17356 r17656 63 63 problem.BestKnownSolution = new HeuristicLab.Encodings.BinaryVectorEncoding.BinaryVector(new bool[] { 64 64 true , false, false, true , true , true , true , true , false, true , true , true , true , true , true , false, true , false, true , true , false, true , true , false, true , false, true , true , true , false, true , true , false, true , true , false, true , false, true , true , true , true , true , true , true , true , true , true , true , true , true , false, true , false, false, true , true , false, true , true , true , true , true , true , true , true , false, true , false, true , true , true , true , false, true , true , true , true , true , true , true , true}); 65 problem.Encoding.SolutionCreator = new RandomBinaryVectorCreator();66 65 problem.KnapsackCapacity = 297; 67 66 problem.Values = new IntArray(new int[] { -
branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/Samples/OSESGriewankSampleTest.cs
r17544 r17656 65 65 problem.Dimension = 10; 66 66 problem.TestFunction = new Griewank(); 67 problem.Encoding.SolutionCreator = new UniformRandomRealVectorCreator();68 67 problem.Bounds = new DoubleMatrix(new double[,] { { -600, 600 } }); 69 68 problem.BestKnownQuality = 0; -
branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/Samples/PsoRastriginSampleTest.cs
r17226 r17656 25 25 using HEAL.Attic; 26 26 using HeuristicLab.Algorithms.ParticleSwarmOptimization; 27 using HeuristicLab.Encodings.RealVectorEncoding;28 27 using HeuristicLab.Problems.TestFunctions; 29 28 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 69 68 var provider = new SOTFInstanceProvider(); 70 69 problem.Load(provider.LoadData(provider.GetDataDescriptors().Single(x => x.Name == "Rastrigin Function"))); 71 problem.Encoding.SolutionCreator = new UniformRandomRealVectorCreator();72 70 #endregion 73 71 #region Algorithm Configuration -
branches/2521_ProblemRefactoring/HeuristicLab.Tests/HeuristicLab-3.3/Samples/SimulatedAnnealingRastriginSampleTest.cs
r17544 r17656 63 63 problem.TestFunction= new Rastrigin(); 64 64 problem.Dimension = 2; 65 problem.Encoding.SolutionCreator = new UniformRandomRealVectorCreator();66 65 #endregion 67 66 #region Algorithm Configuration
Note: See TracChangeset
for help on using the changeset viewer.