Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/20/19 23:39:41 (5 years ago)
Author:
abeham
Message:

#3004: Fixed wiring of evaluator to LocalRandom instead of GlobalRandom (as intended in the code)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/IslandGeneticAlgorithm.cs

    r16565 r16861  
    2222using System;
    2323using System.Linq;
     24using HEAL.Attic;
    2425using HeuristicLab.Analysis;
    2526using HeuristicLab.Common;
     
    3031using HeuristicLab.Optimization.Operators;
    3132using HeuristicLab.Parameters;
    32 using HEAL.Attic;
    3333using HeuristicLab.PluginInfrastructure;
    3434using HeuristicLab.Random;
     
    372372    protected override void OnProblemChanged() {
    373373      ParameterizeStochasticOperator(Problem.SolutionCreator);
     374      foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op);
    374375      ParameterizeStochasticOperatorForIsland(Problem.Evaluator);
    375       foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op);
    376376      ParameterizeSolutionsCreator();
    377377      ParameterizeMainLoop();
     
    402402    protected override void Problem_OperatorsChanged(object sender, EventArgs e) {
    403403      foreach (IOperator op in Problem.Operators.OfType<IOperator>()) ParameterizeStochasticOperator(op);
     404      ParameterizeStochasticOperatorForIsland(Problem.Evaluator);
    404405      ParameterizeIterationBasedOperators();
    405406      UpdateCrossovers();
Note: See TracChangeset for help on using the changeset viewer.