Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12770


Ignore:
Timestamp:
07/17/15 09:08:54 (9 years ago)
Author:
abeham
Message:

#2432: Fixed AfterDeserialization hook

File:
1 edited

Legend:

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

    r12504 r12770  
    205205        Parameters.Add(new FixedValueParameter<BoolValue>("ReevaluateElites", "Flag to determine if elite individuals should be reevaluated (i.e., if stochastic fitness functions are used.)", (BoolValue)new BoolValue(false).AsReadOnly()) { Hidden = true });
    206206      }
    207       if (Parameters.ContainsKey("SimilarityCalculator")) {
     207      if (Parameters.ContainsKey("SimilarityCalculator") && Parameters["SimilarityCalculator"] is IConstrainedValueParameter<ISingleObjectiveSolutionSimilarityCalculator>) {
    208208#pragma warning disable 0618
    209209        var oldParameter = (IConstrainedValueParameter<ISingleObjectiveSolutionSimilarityCalculator>)Parameters["SimilarityCalculator"];
Note: See TracChangeset for help on using the changeset viewer.