Changeset 8345 for trunk/sources/HeuristicLab.Algorithms.ScatterSearch
- Timestamp:
- 07/27/12 15:16:18 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.ScatterSearch/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.ScatterSearch/3.3/ReferenceSetUpdateMethod.cs
r8319 r8345 27 27 using HeuristicLab.Operators; 28 28 using HeuristicLab.Optimization; 29 using HeuristicLab.Optimization.Operators;30 29 using HeuristicLab.Parameters; 31 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 39 38 public sealed class ReferenceSetUpdateMethod : SingleSuccessorOperator, ISimilarityBasedOperator { 40 39 #region ISimilarityBasedOperator Members 40 [Storable] 41 41 public ISolutionSimilarityCalculator SimilarityCalculator { get; set; } 42 42 #endregion … … 62 62 [StorableConstructor] 63 63 private ReferenceSetUpdateMethod(bool deserializing) : base(deserializing) { } 64 private ReferenceSetUpdateMethod(ReferenceSetUpdateMethod original, Cloner cloner) : base(original, cloner) { } 64 private ReferenceSetUpdateMethod(ReferenceSetUpdateMethod original, Cloner cloner) 65 : base(original, cloner) { 66 this.SimilarityCalculator = cloner.Clone(original.SimilarityCalculator); 67 } 65 68 public ReferenceSetUpdateMethod() 66 69 : base() { -
trunk/sources/HeuristicLab.Algorithms.ScatterSearch/3.3/SolutionPoolUpdateMethod.cs
r8322 r8345 38 38 public sealed class SolutionPoolUpdateMethod : SingleSuccessorOperator, ISimilarityBasedOperator { 39 39 #region ISimilarityBasedOperator Members 40 [Storable] 40 41 public ISolutionSimilarityCalculator SimilarityCalculator { get; set; } 41 42 #endregion … … 81 82 [StorableConstructor] 82 83 private SolutionPoolUpdateMethod(bool deserializing) : base(deserializing) { } 83 private SolutionPoolUpdateMethod(SolutionPoolUpdateMethod original, Cloner cloner) : base(original, cloner) { } 84 private SolutionPoolUpdateMethod(SolutionPoolUpdateMethod original, Cloner cloner) 85 : base(original, cloner) { 86 this.SimilarityCalculator = cloner.Clone(original.SimilarityCalculator); 87 } 84 88 public SolutionPoolUpdateMethod() : base() { Initialize(); } 85 89
Note: See TracChangeset
for help on using the changeset viewer.