Changeset 5110 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Evaluators
- Timestamp:
- 12/15/10 15:43:43 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Evaluators/MetaOptimizationEvaluator.cs
r5087 r5110 18 18 [StorableClass] 19 19 public class MetaOptimizationEvaluator : SingleSuccessorOperator, IMetaOptimizationEvaluator { 20 private const string RepetitionsParameterName = "Repetitions";21 22 20 private bool algorithmStopped; 23 21 … … 26 24 } 27 25 public ILookupParameter<EngineAlgorithm> AlgorithmParameter { 28 get { return (ILookupParameter<EngineAlgorithm>)Parameters[ "Algorithm"]; }26 get { return (ILookupParameter<EngineAlgorithm>)Parameters[MetaOptimizationProblem.AlgorithmTypeParameterName]; } 29 27 } 30 28 public ILookupParameter<IItemList<ISingleObjectiveProblem>> ProblemsParameter { 31 get { return (ILookupParameter<IItemList<ISingleObjectiveProblem>>)Parameters[ "Problems"]; }29 get { return (ILookupParameter<IItemList<ISingleObjectiveProblem>>)Parameters[MetaOptimizationProblem.ProblemsParameterName]; } 32 30 } 33 31 public ILookupParameter<ParameterConfigurationTree> ParameterConfigurationParameter { 34 32 get { return (ILookupParameter<ParameterConfigurationTree>)Parameters["ParameterConfigurationTree"]; } 35 33 } 36 public ValueParameter<IntValue> RepetitionsParameter {37 get { return ( ValueParameter<IntValue>)Parameters[RepetitionsParameterName]; }34 public LookupParameter<IntValue> RepetitionsParameter { 35 get { return (LookupParameter<IntValue>)Parameters[MetaOptimizationProblem.RepetitionsParameterName]; } 38 36 } 39 37 40 38 public IntValue Repetitions { 41 get { return RepetitionsParameter.Value; } 42 set { RepetitionsParameter.Value = value; } 39 get { return RepetitionsParameter.ActualValue; } 43 40 } 44 41 … … 46 43 : base() { 47 44 Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The evaluated quality of the ParameterVector.")); 48 Parameters.Add(new LookupParameter<EngineAlgorithm>( "Algorithm", "Missing description."));49 Parameters.Add(new LookupParameter<IItemList<ISingleObjectiveProblem>>( "Problems", "Missing description."));45 Parameters.Add(new LookupParameter<EngineAlgorithm>(MetaOptimizationProblem.AlgorithmTypeParameterName, "Missing description.")); 46 Parameters.Add(new LookupParameter<IItemList<ISingleObjectiveProblem>>(MetaOptimizationProblem.ProblemsParameterName, "Missing description.")); 50 47 Parameters.Add(new LookupParameter<ParameterConfigurationTree>("ParameterConfigurationTree", "Missing description.")); 51 Parameters.Add(new ValueParameter<IntValue>(RepetitionsParameterName, "Number of evaluations for one individual.", new IntValue(3)));48 Parameters.Add(new LookupParameter<IntValue>(MetaOptimizationProblem.RepetitionsParameterName, "Number of evaluations on one problem.")); 52 49 } 53 50
Note: See TracChangeset
for help on using the changeset viewer.