Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/02/15 12:54:47 (10 years ago)
Author:
abeham
Message:

#2249: Added code to remove obsolete parameters in AfterDeserialization hook

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis/3.3/BestScopeSolutionAnalyzer.cs

    r11618 r11854  
    7373    [StorableHook(HookType.AfterDeserialization)]
    7474    private void AfterDeserialization() {
     75      // BackwardsCompatibility3.3
     76      #region Backwards compatible code, remove with 3.4
    7577      if (!Parameters.ContainsKey("BestSolution ResultName"))
    7678        Parameters.Add(new FixedValueParameter<StringValue>("BestSolution ResultName", "The name of the result for storing the best solution.", new StringValue("Best Solution")));
     79      if (Parameters.ContainsKey("BestSolution")) Parameters.Remove("BestSolution");
     80      if (Parameters.ContainsKey("BestKnownSolution")) Parameters.Remove("BestKnownSolution");
     81      #endregion
    7782    }
    7883    #endregion
Note: See TracChangeset for help on using the changeset viewer.