Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/23/11 00:43:49 (13 years ago)
Author:
abeham
Message:

#1425

  • added backwards compatibility for LocalSearchMainLoop
  • fixed build breaker
File:
1 edited

Legend:

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

    r6042 r6043  
    243243      return base.Apply();
    244244    }
     245
     246    [StorableHook(HookType.AfterDeserialization)]
     247    private void AfterDeserialization() {
     248      // BackwardsCompatibility3.3
     249      #region Backwards compatible code, remove with 3.4
     250      if (!Parameters.ContainsKey("BestLocalQuality"))
     251        Parameters.Add(new LookupParameter<DoubleValue>("BestLocalQuality", "The value which represents the best quality found so far."));
     252      if (!Parameters.ContainsKey("Iterations"))
     253        Parameters.Add(new LookupParameter<IntValue>("Iterations", "The number of iterations performed."));
     254      #endregion
     255    }
    245256  }
    246257}
Note: See TracChangeset for help on using the changeset viewer.