Changeset 6043 for trunk/sources/HeuristicLab.Algorithms.LocalSearch
- Timestamp:
- 04/23/11 00:43:49 (14 years ago)
- 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 37 37 [Item("LocalSearchImprovementOperator", "A local search improvement operator.")] 38 38 [StorableClass] 39 public sealed class LocalSearchImprovementOperator : SingleSuccessorOperator, I GenericLocalImprovementOperator, IStochasticOperator {39 public sealed class LocalSearchImprovementOperator : SingleSuccessorOperator, ILocalImprovementOperator, IStochasticOperator { 40 40 #region IGenericLocalImprovementOperator Properties 41 41 public Type ProblemType { get { return typeof(ISingleObjectiveHeuristicOptimizationProblem); } } -
trunk/sources/HeuristicLab.Algorithms.LocalSearch/3.3/LocalSearchMainLoop.cs
r6042 r6043 243 243 return base.Apply(); 244 244 } 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 } 245 256 } 246 257 }
Note: See TracChangeset
for help on using the changeset viewer.