Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/27/10 19:54:20 (14 years ago)
Author:
abeham
Message:

#1090

  • Fixed problem plugins reloading their operators on deserialization in following problems (forgot on them in the first commit)
    • SupportVectorRegressionProblem
    • SymbolicTimeSeriesPrognosisProblem
  • Fixed a bug in the FeatureSelectionProblem introduced in r4098
  • Fixed the issues mentioned in the code review of mkommend
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.OneMax/3.3/OnemaxProblem.cs

    r4098 r4118  
    109109
    110110    [StorableConstructor]
    111     private OneMaxProblem(bool deserializing) : base() { }
     111    private OneMaxProblem(bool deserializing) : base(deserializing) { }
    112112    public OneMaxProblem()
    113113      : base() {
     
    198198    #region Helpers
    199199    [StorableHook(HookType.AfterDeserialization)]
     200    private void AfterDeserializationHook() {
     201      // BackwardsCompatibility3.3
     202      #region Backwards compatible code (remove with 3.4)
     203      if (operators == null) InitializeOperators();
     204      #endregion
     205      AttachEventHandlers();
     206    }
     207
    200208    private void AttachEventHandlers() {
    201       // Start BackwardsCompatibility3.3 (remove with 3.4)
    202       if (operators == null) InitializeOperators();
    203       // End BackwardsCompatibility3.3
    204209      SolutionCreatorParameter.ValueChanged += new EventHandler(SolutionCreatorParameter_ValueChanged);
    205210      SolutionCreator.BinaryVectorParameter.ActualNameChanged += new EventHandler(SolutionCreator_BinaryVectorParameter_ActualNameChanged);
     
    207212      LengthParameter.ValueChanged += new EventHandler(LengthParameter_ValueChanged);
    208213      LengthParameter.Value.ValueChanged += new EventHandler(Length_ValueChanged);
    209       BestKnownQualityParameter.Value.Value = Length.Value;
    210214      BestKnownQualityParameter.ValueChanged += new EventHandler(BestKnownQualityParameter_ValueChanged);
    211215    }
     216
    212217    private void ParameterizeSolutionCreator() {
    213218      SolutionCreator.LengthParameter.ActualName = LengthParameter.Name;
Note: See TracChangeset for help on using the changeset viewer.