Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11982


Ignore:
Timestamp:
02/12/15 14:08:52 (10 years ago)
Author:
mkommend
Message:

#2174: Reregistered solution creator changed event in basic problem.

Location:
trunk/sources/HeuristicLab.Optimization/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/BasicProblems/BasicProblem.cs

    r11970 r11982  
    107107        Encoding.SolutionCreator);
    108108      Parameters.Remove(SolutionCreatorParameter);
    109       Parameters.Add(solutionCreatorParam);
    110 
    111       //TODO register solution creator changed event, change access modifier to private
    112       //((IValueParameter)solutionCreatorParam).ValueChanged += SolutionCreatorParameter_ValueChanged;     
     109      Parameters.Add(solutionCreatorParam); 
     110      ((IValueParameter)solutionCreatorParam).ValueChanged += SolutionCreatorParameter_ValueChanged;     
    113111
    114112      var multiEncoding = Encoding as MultiEncoding;
  • trunk/sources/HeuristicLab.Optimization/3.3/Problems/HeuristicOptimizationProblem.cs

    r11961 r11982  
    9999    }
    100100
    101     private void SolutionCreatorParameter_ValueChanged(object sender, EventArgs e) {
     101    protected virtual void SolutionCreatorParameter_ValueChanged(object sender, EventArgs e) {
    102102      OnSolutionCreatorChanged();
    103103    }
Note: See TracChangeset for help on using the changeset viewer.