Changeset 17337 for branches/2745_EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/DiscreteEGO
- Timestamp:
- 10/18/19 08:51:36 (5 years ago)
- Location:
- branches/2745_EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/DiscreteEGO
- Files:
-
- 2 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 }
Note: See TracChangeset
for help on using the changeset viewer.