Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6043


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
Files:
3 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}
  • trunk/sources/HeuristicLab.Algorithms.SimulatedAnnealing/3.3/SimulatedAnnealingImprovementOperator.cs

    r6042 r6043  
    3838  [Item("SimulatedAnnealingImprovementOperator", "A simulated annealing improvement operator.")]
    3939  [StorableClass]
    40   public sealed class SimulatedAnnealingImprovementOperator : SingleSuccessorOperator, IGenericLocalImprovementOperator, IStochasticOperator {
     40  public sealed class SimulatedAnnealingImprovementOperator : SingleSuccessorOperator, ILocalImprovementOperator, IStochasticOperator {
    4141    #region IGenericLocalImprovementOperator Properties
    4242    public Type ProblemType { get { return typeof(ISingleObjectiveHeuristicOptimizationProblem); } }
Note: See TracChangeset for help on using the changeset viewer.