Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/19/10 17:07:32 (14 years ago)
Author:
abeham
Message:

#1086

  • Fixed local search to wire sample size parameter of IMultiMoveGenerators
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3/LocalSearch.cs

    r3816 r4048  
    191191      UpdateMoveParameters();
    192192      UpdateAnalyzers();
     193      ParameterizeMoveGenerators();
    193194      ParameterizeMoveEvaluators();
    194195      ParameterizeMoveMakers();
     
    225226      UpdateAnalyzers();
    226227      ParameterizeMainLoop();
     228      ParameterizeMoveGenerators();
    227229      ParameterizeMoveEvaluators();
    228230      ParameterizeMoveMakers();
     
    337339        ((IStochasticOperator)op).RandomParameter.ActualName = RandomCreator.RandomParameter.ActualName;
    338340    }
     341    private void ParameterizeMoveGenerators() {
     342      if (Problem != null) {
     343        foreach (IMultiMoveGenerator generator in Problem.Operators.OfType<IMultiMoveGenerator>())
     344          generator.SampleSizeParameter.ActualName = SampleSizeParameter.Name;
     345      }
     346    }
    339347    private void ParameterizeMoveEvaluators() {
    340348      foreach (ISingleObjectiveMoveEvaluator op in Problem.Operators.OfType<ISingleObjectiveMoveEvaluator>()) {
Note: See TracChangeset for help on using the changeset viewer.