Changeset 8157 for branches/HeuristicLab.MetaOptimization
- Timestamp:
- 06/29/12 10:02:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/MetaOptimizationProblem.cs
r6489 r8157 73 73 get { return (ValueParameter<IntValue>)Parameters[RepetitionsParameterName]; } 74 74 } 75 76 public IValueParameter<IIntValueManipulator> IntValueManipulatorParameter { 77 get { return (ValueParameter<IIntValueManipulator>)Parameters[IntValueManipulatorParameterName]; } 78 } 79 80 public IValueParameter<IDoubleValueManipulator> DoubleValueManipulatorParameter { 81 get { return (ValueParameter<IDoubleValueManipulator>)Parameters[DoubleValueManipulatorParameterName]; } 75 public IConstrainedValueParameter<IIntValueManipulator> IntValueManipulatorParameter { 76 get { return (ConstrainedValueParameter<IIntValueManipulator>)Parameters[IntValueManipulatorParameterName]; } 77 } 78 public IConstrainedValueParameter<IDoubleValueManipulator> DoubleValueManipulatorParameter { 79 get { return (ConstrainedValueParameter<IDoubleValueManipulator>)Parameters[DoubleValueManipulatorParameterName]; } 82 80 } 83 81 public IValueParameter<StringValue> QualityMeasureNameParameter { 84 82 get { return (ValueParameter<StringValue>)Parameters[QualityMeasureNameName]; } 83 } 84 public IConstrainedValueParameter<IIntValueCrossover> IntValueCrossoverParameter { 85 get { return (ConstrainedValueParameter<IIntValueCrossover>)Parameters[IntValueCrossoverParameterName]; } 86 } 87 public IConstrainedValueParameter<IDoubleValueCrossover> DoubleValueCrossoverParameter { 88 get { return (ConstrainedValueParameter<IDoubleValueCrossover>)Parameters[DoubleValueCrossoverParameterName]; } 85 89 } 86 90 #endregion … … 179 183 [StorableHook(HookType.AfterDeserialization)] 180 184 private void AfterDeserializationHook() { 181 if (!Parameters.ContainsKey(QualityMeasureNameName)) Parameters.Add(new ValueParameter<StringValue>(QualityMeasureNameName, "The name of the quality result of the base-level algorithm. Subresults can be accessed by dot separator.", new StringValue("BestQuality"))); // backwards compatibility185 if (!Parameters.ContainsKey(QualityMeasureNameName)) Parameters.Add(new ValueParameter<StringValue>(QualityMeasureNameName, "The name of the quality result of the base-level algorithm. Subresults can be accessed by dot separator.", new StringValue("BestQuality"))); // backwards compatibility 182 186 RegisterParameterEvents(); 183 187 }
Note: See TracChangeset
for help on using the changeset viewer.