Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/25/11 11:13:30 (13 years ago)
Author:
abeham
Message:

#1690

  • checked if old ActualName was mapped and set the same map on the new parameter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/ParticleOperators/RealVectorSwarmUpdater.cs

    r7073 r7074  
    219219    private void AfterDeserialization() {
    220220      if (!Parameters.ContainsKey("SwarmBestQuality")) {
     221        ILookupParameter<DoubleValue> oldBestQualityParameter = Parameters["BestQuality"] as ILookupParameter<DoubleValue>;
    221222        Parameters.Add(new LookupParameter<DoubleValue>("SwarmBestQuality", "Swarm's best quality."));
     223        if (oldBestQualityParameter.ActualName != oldBestQualityParameter.Name)
     224          SwarmBestQualityParameter.ActualName = oldBestQualityParameter.ActualName;
    222225        Parameters.Remove("BestQuality");
    223226      }
Note: See TracChangeset for help on using the changeset viewer.