Changeset 15973 for branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer
- Timestamp:
- 06/28/18 11:13:37 (6 years ago)
- Location:
- branches/2522_RefactorPluginInfrastructure
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2522_RefactorPluginInfrastructure
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis
- Property svn:mergeinfo changed
-
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionEight.cs
r12292 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionEleven.cs
r12292 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using System.Linq; 25 25 using HeuristicLab.Common; 26 using HeuristicLab.Random; 26 27 27 28 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 36 37 + "Function: f(x, y) = xy + sin((x - 1)(y - 1))" + Environment.NewLine 37 38 + "range(train): 20 Training cases x,y = rnd(-3, 3)" + Environment.NewLine 38 + "range(test): x,y = [-3:0.01:3]" + Environment.NewLine 39 + "Function Set: x + y, x * y, 1/x, -x, sqrt(x)"; 39 + "range(test): x,y = [-3:0.1:3]" + Environment.NewLine 40 + "Function Set: x + y, x * y, 1/x, -x, sqrt(x)" + Environment.NewLine 41 + "Comments: Reduced test set compared to original publication!"; 40 42 } 41 43 } … … 46 48 protected override int TrainingPartitionEnd { get { return 20; } } 47 49 protected override int TestPartitionStart { get { return 20; } } 48 protected override int TestPartitionEnd { get { return 20 + (601 * 601); } } 50 protected override int TestPartitionEnd { get { return 20 + (61 * 61); } } 51 public int Seed { get; private set; } 49 52 53 public KeijzerFunctionEleven() : this((int)System.DateTime.Now.Ticks) { 54 } 55 public KeijzerFunctionEleven(int seed) : base() { 56 Seed = seed; 57 } 50 58 protected override List<List<double>> GenerateValues() { 51 59 List<List<double>> data = new List<List<double>>(); 52 List<double> oneVariableTestData = SequenceGenerator.GenerateSteps(-3, 3, 0. 01m).Select(v => (double)v).ToList();60 List<double> oneVariableTestData = SequenceGenerator.GenerateSteps(-3, 3, 0.1m).Select(v => (double)v).ToList(); 53 61 List<List<double>> testData = new List<List<double>>() { oneVariableTestData, oneVariableTestData }; 54 62 55 63 var combinations = ValueGenerator.GenerateAllCombinationsOfValuesInLists(testData).ToList(); 56 64 var rand = new MersenneTwister((uint)Seed); 57 65 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 58 data.Add(ValueGenerator.GenerateUniformDistributedValues( 20, -3, 3).ToList());66 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), 20, -3, 3).ToList()); 59 67 data[i].AddRange(combinations[i]); 60 68 } -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionFifteen.cs
r12292 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using System.Linq; 25 25 using HeuristicLab.Common; 26 using HeuristicLab.Random; 26 27 27 28 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 35 36 + "Function: f(x, y) = x³ / 5 + y³ / 2 - y - x" + Environment.NewLine 36 37 + "range(train): 20 Training cases x,y = rnd(-3, 3)" + Environment.NewLine 37 + "range(test): x,y = [-3:0.01:3]" + Environment.NewLine 38 + "Function Set: x + y, x * y, 1/x, -x, sqrt(x)"; 38 + "range(test): x,y = [-3:0.1:3]" + Environment.NewLine 39 + "Function Set: x + y, x * y, 1/x, -x, sqrt(x)" + Environment.NewLine 40 + "Comments: Reduced test set compared to original publication!"; 39 41 } 40 42 } … … 45 47 protected override int TrainingPartitionEnd { get { return 20; } } 46 48 protected override int TestPartitionStart { get { return 20; } } 47 protected override int TestPartitionEnd { get { return 20 + (601 * 601); } } 49 protected override int TestPartitionEnd { get { return 20 + (61 * 61); } } 50 public int Seed { get; private set; } 48 51 52 public KeijzerFunctionFifteen() : this((int)System.DateTime.Now.Ticks) { 53 } 54 public KeijzerFunctionFifteen(int seed) : base() { 55 Seed = seed; 56 } 49 57 protected override List<List<double>> GenerateValues() { 50 58 List<List<double>> data = new List<List<double>>(); 51 List<double> oneVariableTestData = SequenceGenerator.GenerateSteps(-3, 3, 0. 01m).Select(v => (double)v).ToList();59 List<double> oneVariableTestData = SequenceGenerator.GenerateSteps(-3, 3, 0.1m).Select(v => (double)v).ToList(); 52 60 List<List<double>> testData = new List<List<double>>() { oneVariableTestData, oneVariableTestData }; 53 61 54 62 var combinations = ValueGenerator.GenerateAllCombinationsOfValuesInLists(testData).ToList(); 63 var rand = new MersenneTwister((uint)Seed); 55 64 56 65 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 57 data.Add(ValueGenerator.GenerateUniformDistributedValues( 20, -3, 3).ToList());66 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), 20, -3, 3).ToList()); 58 67 data[i].AddRange(combinations[i]); 59 68 } -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionFive.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HeuristicLab.Random; 25 26 26 27 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 45 46 protected override int TestPartitionStart { get { return 1000; } } 46 47 protected override int TestPartitionEnd { get { return 11000; } } 48 public int Seed { get; private set; } 47 49 50 public KeijzerFunctionFive() : this((int)System.DateTime.Now.Ticks) { 51 } 52 public KeijzerFunctionFive(int seed) : base() { 53 Seed = seed; 54 } 48 55 protected override List<List<double>> GenerateValues() { 49 56 List<List<double>> data = new List<List<double>>(); 50 data.Add(ValueGenerator.GenerateUniformDistributedValues(TestPartitionEnd, -1, 1).ToList()); 51 data.Add(ValueGenerator.GenerateUniformDistributedValues(TestPartitionEnd, 1, 2).ToList()); 52 data.Add(ValueGenerator.GenerateUniformDistributedValues(TestPartitionEnd, -1, 1).ToList()); 57 var rand = new MersenneTwister((uint)Seed); 58 59 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), TestPartitionEnd, -1, 1).ToList()); 60 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), TestPartitionEnd, 1, 2).ToList()); 61 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), TestPartitionEnd, -1, 1).ToList()); 53 62 54 63 double x, y, z; -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionFour.cs
r12292 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionFourteen.cs
r12292 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using System.Linq; 25 25 using HeuristicLab.Common; 26 using HeuristicLab.Random; 26 27 27 28 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 35 36 + "Function: f(x, y) = 8 / (2 + x² + y²)" + Environment.NewLine 36 37 + "range(train): 20 Train cases x,y = rnd(-3, 3)" + Environment.NewLine 37 + "range(test): x,y = [-3:0.01:3]" + Environment.NewLine 38 + "Function Set: x + y, x * y, 1/x, -x, sqrt(x)"; 38 + "range(test): x,y = [-3:0.1:3]" + Environment.NewLine 39 + "Function Set: x + y, x * y, 1/x, -x, sqrt(x)" + Environment.NewLine 40 + "Comments: Reduced test set compared to original publication!"; 39 41 } 40 42 } … … 45 47 protected override int TrainingPartitionEnd { get { return 20; } } 46 48 protected override int TestPartitionStart { get { return 20; } } 47 protected override int TestPartitionEnd { get { return 20 + (601 * 601); } } 49 protected override int TestPartitionEnd { get { return 20 + (61 * 61); } } 50 public int Seed { get; private set; } 51 52 public KeijzerFunctionFourteen() : this((int)System.DateTime.Now.Ticks) { 53 } 54 public KeijzerFunctionFourteen(int seed) : base() { 55 Seed = seed; 56 } 57 48 58 49 59 protected override List<List<double>> GenerateValues() { 50 60 List<List<double>> data = new List<List<double>>(); 51 List<double> oneVariableTestData = SequenceGenerator.GenerateSteps(-3, 3, 0. 01m).Select(v => (double)v).ToList();61 List<double> oneVariableTestData = SequenceGenerator.GenerateSteps(-3, 3, 0.1m).Select(v => (double)v).ToList(); 52 62 List<List<double>> testData = new List<List<double>>() { oneVariableTestData, oneVariableTestData }; 53 63 54 64 var combinations = ValueGenerator.GenerateAllCombinationsOfValuesInLists(testData).ToList(); 65 var rand = new MersenneTwister((uint)Seed); 55 66 56 67 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 57 data.Add(ValueGenerator.GenerateUniformDistributedValues( 20, -3, 3).ToList());68 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), 20, -3, 3).ToList()); 58 69 data[i].AddRange(combinations[i]); 59 70 } -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionNine.cs
r12292 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionOne.cs
r12292 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionSeven.cs
r12292 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionSix.cs
r12292 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionTen.cs
r12292 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using System.Linq; 25 25 using HeuristicLab.Common; 26 using HeuristicLab.Random; 26 27 27 28 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 46 47 protected override int TestPartitionStart { get { return 100; } } 47 48 protected override int TestPartitionEnd { get { return 100 + (101 * 101); } } 49 public int Seed { get; private set; } 48 50 51 public KeijzerFunctionTen() : this((int)System.DateTime.Now.Ticks) { 52 } 53 public KeijzerFunctionTen(int seed) : base() { 54 Seed = seed; 55 } 49 56 protected override List<List<double>> GenerateValues() { 50 57 List<List<double>> data = new List<List<double>>(); … … 54 61 55 62 var combinations = ValueGenerator.GenerateAllCombinationsOfValuesInLists(testData).ToList<IEnumerable<double>>(); 63 var rand = new MersenneTwister((uint)Seed); 56 64 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 57 data.Add(ValueGenerator.GenerateUniformDistributedValues( 100, 0, 1).ToList());65 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), 100, 0, 1).ToList()); 58 66 data[i].AddRange(combinations[i]); 59 67 } -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionThirteen.cs
r12292 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using System.Linq; 25 25 using HeuristicLab.Common; 26 using HeuristicLab.Random; 26 27 27 28 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 35 36 + "Function: f(x, y) = 6 * sin(x) * cos(y)" + Environment.NewLine 36 37 + "range(train): 20 Train cases x,y = rnd(-3, 3)" + Environment.NewLine 37 + "range(test): x,y = [-3:0.01:3]" + Environment.NewLine 38 + "Function Set: x + y, x * y, 1/x, -x, sqrt(x)"; 38 + "range(test): x,y = [-3:0.1:3]" + Environment.NewLine 39 + "Function Set: x + y, x * y, 1/x, -x, sqrt(x)" + Environment.NewLine 40 + "Comments: Reduced test set compared to original publication!"; 39 41 } 40 42 } … … 45 47 protected override int TrainingPartitionEnd { get { return 20; } } 46 48 protected override int TestPartitionStart { get { return 20; } } 47 protected override int TestPartitionEnd { get { return 20 + (601 * 601); } } 49 protected override int TestPartitionEnd { get { return 20 + (61 * 61); } } 50 public int Seed { get; private set; } 48 51 52 public KeijzerFunctionThirteen() : this((int)System.DateTime.Now.Ticks) { 53 } 54 public KeijzerFunctionThirteen(int seed) : base() { 55 Seed = seed; 56 } 49 57 protected override List<List<double>> GenerateValues() { 50 58 List<List<double>> data = new List<List<double>>(); 51 List<double> oneVariableTestData = SequenceGenerator.GenerateSteps(-3, 3, 0. 01m).Select(v => (double)v).ToList();59 List<double> oneVariableTestData = SequenceGenerator.GenerateSteps(-3, 3, 0.1m).Select(v => (double)v).ToList(); 52 60 List<List<double>> testData = new List<List<double>>() { oneVariableTestData, oneVariableTestData }; 53 61 54 62 var combinations = ValueGenerator.GenerateAllCombinationsOfValuesInLists(testData).ToList(); 63 var rand = new MersenneTwister((uint)Seed); 55 64 56 65 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 57 data.Add(ValueGenerator.GenerateUniformDistributedValues( 20, -3, 3).ToList());66 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), 20, -3, 3).ToList()); 58 67 data[i].AddRange(combinations[i]); 59 68 } -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionThree.cs
r12292 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionTwelve.cs
r12292 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using System.Linq; 25 25 using HeuristicLab.Common; 26 using HeuristicLab.Random; 26 27 27 28 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 35 36 + "Function: f(x, y) = x^4 - x³ + y² / 2 - y" + Environment.NewLine 36 37 + "range(train): 20 Training cases x,y = rnd(-3, 3)" + Environment.NewLine 37 + "range(test): x,y = [-3:0.01:3]" + Environment.NewLine 38 + "Function Set: x + y, x * y, 1/x, -x, sqrt(x)"; 38 + "range(test): x,y = [-3:0.1:3]" + Environment.NewLine 39 + "Function Set: x + y, x * y, 1/x, -x, sqrt(x)" + Environment.NewLine 40 + "Comments: Reduced test set compared to original publication!"; 39 41 } 40 42 } … … 45 47 protected override int TrainingPartitionEnd { get { return 20; } } 46 48 protected override int TestPartitionStart { get { return 20; } } 47 protected override int TestPartitionEnd { get { return 20 + (601 * 601); } } 49 protected override int TestPartitionEnd { get { return 20 + (61 * 61); } } 50 public int Seed { get; private set; } 48 51 52 public KeijzerFunctionTwelve() : this((int)System.DateTime.Now.Ticks) { 53 } 54 public KeijzerFunctionTwelve(int seed) : base() { 55 Seed = seed; 56 } 49 57 protected override List<List<double>> GenerateValues() { 50 58 List<List<double>> data = new List<List<double>>(); 51 List<double> oneVariableTestData = SequenceGenerator.GenerateSteps(-3, 3, 0. 01m).Select(v => (double)v).ToList();59 List<double> oneVariableTestData = SequenceGenerator.GenerateSteps(-3, 3, 0.1m).Select(v => (double)v).ToList(); 52 60 List<List<double>> testData = new List<List<double>>() { oneVariableTestData, oneVariableTestData }; 53 61 54 62 var combinations = ValueGenerator.GenerateAllCombinationsOfValuesInLists(testData).ToList(); 63 var rand = new MersenneTwister((uint)Seed); 55 64 56 65 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 57 data.Add(ValueGenerator.GenerateUniformDistributedValues( 20, -3, 3).ToList());66 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), 20, -3, 3).ToList()); 58 67 data[i].AddRange(combinations[i]); 59 68 } -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionTwo.cs
r12292 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerInstanceProvider.cs
r12012 r15973 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using System; 23 23 using System.Collections.Generic; 24 using HeuristicLab.Random; 24 25 25 26 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 37 38 get { return "McDermott et al., 2012 \"Genetic Programming Needs Better Benchmarks\", in Proc. of GECCO 2012."; } 38 39 } 40 public int Seed { get; private set; } 41 42 public KeijzerInstanceProvider() : this((int)System.DateTime.Now.Ticks) { 43 } 44 public KeijzerInstanceProvider(int seed) : base() { 45 Seed = seed; 46 } 39 47 40 48 public override IEnumerable<IDataDescriptor> GetDataDescriptors() { 41 49 List<IDataDescriptor> descriptorList = new List<IDataDescriptor>(); 50 var rand = new MersenneTwister((uint)Seed); 42 51 descriptorList.Add(new KeijzerFunctionOne()); 43 52 descriptorList.Add(new KeijzerFunctionTwo()); 44 53 descriptorList.Add(new KeijzerFunctionThree()); 45 54 descriptorList.Add(new KeijzerFunctionFour()); 46 descriptorList.Add(new KeijzerFunctionFive( ));55 descriptorList.Add(new KeijzerFunctionFive(rand.Next())); 47 56 descriptorList.Add(new KeijzerFunctionSix()); 48 57 descriptorList.Add(new KeijzerFunctionSeven()); 49 58 descriptorList.Add(new KeijzerFunctionEight()); 50 59 descriptorList.Add(new KeijzerFunctionNine()); 51 descriptorList.Add(new KeijzerFunctionTen( ));52 descriptorList.Add(new KeijzerFunctionEleven( ));53 descriptorList.Add(new KeijzerFunctionTwelve( ));54 descriptorList.Add(new KeijzerFunctionThirteen( ));55 descriptorList.Add(new KeijzerFunctionFourteen( ));56 descriptorList.Add(new KeijzerFunctionFifteen( ));60 descriptorList.Add(new KeijzerFunctionTen(rand.Next())); 61 descriptorList.Add(new KeijzerFunctionEleven(rand.Next())); 62 descriptorList.Add(new KeijzerFunctionTwelve(rand.Next())); 63 descriptorList.Add(new KeijzerFunctionThirteen(rand.Next())); 64 descriptorList.Add(new KeijzerFunctionFourteen(rand.Next())); 65 descriptorList.Add(new KeijzerFunctionFifteen(rand.Next())); 57 66 return descriptorList; 58 67 }
Note: See TracChangeset
for help on using the changeset viewer.