Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7420


Ignore:
Timestamp:
01/27/12 13:35:11 (13 years ago)
Author:
abeham
Message:

#1614

  • fixed parameterizing of local improvement operators
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/GRASPWithPathRelinking.cs

    r7412 r7420  
    190190      base.Problem_OperatorsChanged(sender, e);
    191191    }
     192
     193    private void LocalImprovementParameter_ValueChanged(object sender, EventArgs e) {
     194      Parameterize();
     195    }
    192196    #endregion
    193197
     
    201205
    202206    private void RegisterEventHandlers() {
    203 
     207      LocalImprovementParameter.ValueChanged += new EventHandler(LocalImprovementParameter_ValueChanged);
    204208    }
    205209
     
    231235
    232236        analyzer.QualityParameter.ActualName = Problem.Evaluator.QualityParameter.ActualName;
     237
     238        if (LocalImprovementParameter.Value != null)
     239          LocalImprovementParameter.Value.Problem = Problem;
    233240      }
    234241      foreach (var localImprovement in LocalImprovementParameter.ValidValues) {
     
    236243        localImprovement.EvaluatedSolutionsParameter.ActualName = "EvaluatedSolutions";
    237244        localImprovement.ResultsParameter.ActualName = "Results";
    238         if (Problem != null && localImprovement.ProblemType.IsAssignableFrom(Problem.GetType()))
    239           localImprovement.Problem = Problem;
    240245      }
    241246      foreach (var merger in EliteSetMergerParameter.ValidValues) {
Note: See TracChangeset for help on using the changeset viewer.