- Timestamp:
- 05/06/10 02:46:37 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/BestQualityMemorizer.cs
r3659 r3662 29 29 namespace HeuristicLab.Analysis { 30 30 /// <summary> 31 /// An operator that updates the best quality found so far with those qualities in the subscopes.31 /// An operator that updates the best quality found so far with those qualities contained in the scope tree. 32 32 /// </summary> 33 [Item("BestQualityMemorizer", "An operator that updates the best quality found so far with those qualities in the subscopes.")]33 [Item("BestQualityMemorizer", "An operator that updates the best quality found so far with those qualities contained in the scope tree.")] 34 34 [StorableClass] 35 35 public class BestQualityMemorizer : SingleSuccessorOperator { 36 public IValueLookupParameter<BoolValue> MaximizationParameter {37 get { return ( IValueLookupParameter<BoolValue>)Parameters["Maximization"]; }36 public ValueLookupParameter<BoolValue> MaximizationParameter { 37 get { return (ValueLookupParameter<BoolValue>)Parameters["Maximization"]; } 38 38 } 39 public ILookupParameter<ItemArray<DoubleValue>> QualityParameter {40 get { return ( ILookupParameter<ItemArray<DoubleValue>>)Parameters["Quality"]; }39 public ScopeTreeLookupParameter<DoubleValue> QualityParameter { 40 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; } 41 41 } 42 public IValueLookupParameter<DoubleValue> BestQualityParameter {43 get { return ( IValueLookupParameter<DoubleValue>)Parameters["BestQuality"]; }42 public ValueLookupParameter<DoubleValue> BestQualityParameter { 43 get { return (ValueLookupParameter<DoubleValue>)Parameters["BestQuality"]; } 44 44 } 45 45 … … 47 47 : base() { 48 48 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the current problem is a maximization problem, otherwise false.")); 49 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value contained in each sub-scope which represents the solution quality."));49 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The value contained in the scope tree which represents the solution quality.")); 50 50 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestQuality", "The quality value of the best solution.")); 51 51 }
Note: See TracChangeset
for help on using the changeset viewer.