Changeset 17337
- Timestamp:
- 10/18/19 08:51:36 (5 years ago)
- Location:
- branches/2745_EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2745_EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/DiscreteEGO/DiscreteAdaptiveSamplingAlgorithm.cs
r17332 r17337 492 492 base.Problem_SolutionCreatorChanged(sender, e); 493 493 ParameterizeStochasticOperators(Problem.SolutionCreator.ToEnumerable()); 494 SingleObjectiveProblem.Evaluator.QualityParameter.ActualNameChanged += Evaluator_QualityParameter_ActualNameChanged; 494 var qParameter = SingleObjectiveProblem?.Evaluator?.QualityParameter; 495 if(qParameter!= null) 496 qParameter.ActualNameChanged += Evaluator_QualityParameter_ActualNameChanged; 495 497 ParameterizeSolutionsCreators(); 496 498 ParameterizeAnalyzers(); -
branches/2745_EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/DiscreteEGO/DiscreteInfillSolver.cs
r17332 r17337 94 94 var dim = dims[i]; 95 95 dims.RemoveAt(i); 96 var step = bounds[dim % bounds.Rows, 2] * steps; 96 var step = bounds.Columns>2?bounds[dim % bounds.Rows, 2]:1 * steps; 97 97 98 var low = checkIntBounds(bounds, dim, res[dim] - step); 98 99 var high = checkIntBounds(bounds, dim, res[dim] + step); … … 111 112 var l = b[bi, 0]; 112 113 var h = b[bi, 1]; 113 var s = b [bi, 2];114 var s = b.Columns>2?b[bi, 2]:1; 114 115 return l <= value && h >= value && (value - l) % s == 0; 115 116 } -
branches/2745_EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/Interfaces/ICancellableOperator.cs
r15338 r17337 22 22 // ReSharper disable once CheckNamespace 23 23 using System.Threading; 24 using HEAL.Attic; 24 25 using HeuristicLab.Core; 25 26 26 27 namespace HeuristicLab.Algorithms.EGO { 28 [StorableType("d80fee60-f9a1-4daf-94d3-3e07b1c68769")] 27 29 public interface ICancellableOperator : IOperator { 28 30 -
branches/2745_EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/Interfaces/IInfillCriterion.cs
r15343 r17337 21 21 22 22 // ReSharper disable once CheckNamespace 23 using HEAL.Attic; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Encodings.RealVectorEncoding; … … 26 27 27 28 namespace HeuristicLab.Algorithms.EGO { 29 [StorableType("c38ba956-5089-4589-b7ef-d48887ec9fbc")] 28 30 public interface IInfillCriterion : INamedItem { 29 31 -
branches/2745_EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/Interfaces/IInitialSampling.cs
r15343 r17337 21 21 22 22 // ReSharper disable once CheckNamespace 23 using HEAL.Attic; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Optimization; 25 26 26 27 namespace HeuristicLab.Algorithms.EGO { 28 [StorableType("ac71b779-b208-4427-8a4b-da8b72f76bde")] 27 29 public interface IInitialSampling<T> : INamedItem where T : class { 28 30 T[] GetSamples(int noSamples, T[] existingSamples, IEncoding encoding, IRandom random); -
branches/2745_EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/Interfaces/IResultsOperator.cs
r15338 r17337 21 21 22 22 // ReSharper disable once CheckNamespace 23 using HEAL.Attic; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Optimization; 25 26 26 27 namespace HeuristicLab.Algorithms.EGO { 28 [StorableType("1bc84c6e-6178-46b3-98c5-a505011c0db1")] 27 29 public interface IResultsOperator : IOperator { 28 30 ILookupParameter<ResultCollection> ResultsParameter { get; } -
branches/2745_EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/Interfaces/ISurrogateAlgorithm.cs
r14818 r17337 21 21 22 22 // ReSharper disable once CheckNamespace 23 using HEAL.Attic; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Optimization; 25 26 26 27 namespace HeuristicLab.Algorithms.EGO { 28 [StorableType("28cb2019-1dee-4912-857f-060f0f3d671f")] 27 29 public interface ISurrogateAlgorithm<T> : IAlgorithm where T : IDeepCloneable { 28 30 void SetInitialSamples(T[] solutions, double[] qualities); -
branches/2745_EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/SamplingMethods/LatinHyperCubeDesignCreator.cs
r17332 r17337 31 31 using HeuristicLab.Encodings.RealVectorEncoding; 32 32 using HeuristicLab.Parameters; 33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;34 33 35 34 // ReSharper disable once CheckNamespace
Note: See TracChangeset
for help on using the changeset viewer.