Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12772


Ignore:
Timestamp:
07/17/15 09:44:34 (9 years ago)
Author:
jkarder
Message:

#2433: fixed AfterDeserialization hook

File:
1 edited

Legend:

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

    r12504 r12772  
    162162      // BackwardsCompatibility3.3
    163163      #region Backwards compatible code, remove with 3.4
    164       if (Parameters.ContainsKey("SimilarityCalculator")) {
     164      if (Parameters.ContainsKey("SimilarityCalculator") && Parameters["SimilarityCalculator"] is IConstrainedValueParameter<ISingleObjectiveSolutionSimilarityCalculator>) {
    165165#pragma warning disable 0618
    166166        var oldParameter = (IConstrainedValueParameter<ISingleObjectiveSolutionSimilarityCalculator>)Parameters["SimilarityCalculator"];
Note: See TracChangeset for help on using the changeset viewer.