Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/18/19 08:51:36 (5 years ago)
Author:
bwerth
Message:

#2745 forgot to add Storable Tags to Interfaces

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  
    492492      base.Problem_SolutionCreatorChanged(sender, e);
    493493      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;
    495497      ParameterizeSolutionsCreators();
    496498      ParameterizeAnalyzers();
  • branches/2745_EfficientGlobalOptimization/HeuristicLab.Algorithms.EGO/DiscreteEGO/DiscreteInfillSolver.cs

    r17332 r17337  
    9494        var dim = dims[i];
    9595        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       
    9798        var low = checkIntBounds(bounds, dim, res[dim] - step);
    9899        var high = checkIntBounds(bounds, dim, res[dim] + step);
     
    111112      var l = b[bi, 0];
    112113      var h = b[bi, 1];
    113       var s = b[bi, 2];
     114      var s = b.Columns>2?b[bi, 2]:1;
    114115      return l <= value && h >= value && (value - l) % s == 0;
    115116    }
Note: See TracChangeset for help on using the changeset viewer.