Free cookie consent management tool by TermsFeed Policy Generator

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

#1425

  • added backwards compatibility for LocalSearchMainLoop
  • fixed build breaker
Location:
trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3
Files:
2 edited

Legend:

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

    r6042 r6043  
    3737  [Item("LocalSearchImprovementOperator", "A local search improvement operator.")]
    3838  [StorableClass]
    39   public sealed class LocalSearchImprovementOperator : SingleSuccessorOperator, IGenericLocalImprovementOperator, IStochasticOperator {
     39  public sealed class LocalSearchImprovementOperator : SingleSuccessorOperator, ILocalImprovementOperator, IStochasticOperator {
    4040    #region IGenericLocalImprovementOperator Properties
    4141    public Type ProblemType { get { return typeof(ISingleObjectiveHeuristicOptimizationProblem); } }
  • 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.