Changeset 4722 for trunk/sources/HeuristicLab.Problems.OneMax/3.3/Analyzers
- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Problems.OneMax/3.3/Analyzers/BestOneMaxSolutionAnalyzer.cs
r4068 r4722 21 21 22 22 using System.Linq; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 35 36 [Item("BestOneMaxSolutionAnalyzer", "An operator for analyzing the best solution for a OneMax problem.")] 36 37 [StorableClass] 37 class BestOneMaxSolutionAnalyzer : SingleSuccessorOperator, IAnalyzer {38 public class BestOneMaxSolutionAnalyzer : SingleSuccessorOperator, IAnalyzer { 38 39 public LookupParameter<BoolValue> MaximizationParameter { 39 40 get { return (LookupParameter<BoolValue>)Parameters["Maximization"]; } … … 55 56 } 56 57 58 [StorableConstructor] 59 protected BestOneMaxSolutionAnalyzer(bool deserializing) : base(deserializing) { } 60 protected BestOneMaxSolutionAnalyzer(BestOneMaxSolutionAnalyzer original, Cloner cloner) : base(original, cloner) { } 57 61 public BestOneMaxSolutionAnalyzer() 58 62 : base() { … … 63 67 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the Onemax solution should be stored.")); 64 68 Parameters.Add(new LookupParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution.")); 69 } 70 71 public override IDeepCloneable Clone(Cloner cloner) { 72 return new BestOneMaxSolutionAnalyzer(this, cloner); 65 73 } 66 74
Note: See TracChangeset
for help on using the changeset viewer.