Changeset 15281 for branches/Async/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Vladislavleva/VladislavlevaInstanceProvider.cs
- Timestamp:
- 07/23/17 11:17:18 (7 years ago)
- Location:
- branches/Async
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Async
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/Async/HeuristicLab.Problems.Instances.DataAnalysis
- Property svn:mergeinfo changed
-
branches/Async/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Vladislavleva/VladislavlevaInstanceProvider.cs
r12012 r15281 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 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 { … … 38 39 } 39 40 41 public int Seed { get; private set; } 42 43 public VladislavlevaInstanceProvider() : this((int)DateTime.Now.Ticks) { } 44 public VladislavlevaInstanceProvider(int seed) : base() { 45 Seed = seed; 46 } 47 40 48 public override IEnumerable<IDataDescriptor> GetDataDescriptors() { 41 49 List<IDataDescriptor> descriptorList = new List<IDataDescriptor>(); 42 descriptorList.Add(new KotanchekFunction()); 50 var rand = new MersenneTwister((uint)Seed); 51 descriptorList.Add(new KotanchekFunction(rand.Next())); 43 52 descriptorList.Add(new SalutowiczFunctionOneDimensional()); 44 53 descriptorList.Add(new SalutowiczFunctionTwoDimensional()); 45 descriptorList.Add(new UnwrappedBallFunctionFiveDimensional( ));46 descriptorList.Add(new RationalPolynomialThreeDimensional( ));47 descriptorList.Add(new SineCosineFunction( ));48 descriptorList.Add(new RippleFunction( ));49 descriptorList.Add(new RationalPolynomialTwoDimensional( ));54 descriptorList.Add(new UnwrappedBallFunctionFiveDimensional(rand.Next())); 55 descriptorList.Add(new RationalPolynomialThreeDimensional(rand.Next())); 56 descriptorList.Add(new SineCosineFunction(rand.Next())); 57 descriptorList.Add(new RippleFunction(rand.Next())); 58 descriptorList.Add(new RationalPolynomialTwoDimensional(rand.Next())); 50 59 return descriptorList; 51 60 }
Note: See TracChangeset
for help on using the changeset viewer.