Changeset 5144 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/MetaOptimizationProblem.cs
- Timestamp:
- 12/21/10 01:13:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/MetaOptimizationProblem.cs
r5111 r5144 40 40 public const string ProblemTypeParameterName = "ProblemType"; 41 41 public const string ProblemsParameterName = "Problems"; 42 public const string ParameterConfiguration ParameterName = "InitialParameterConfigurationTree";42 public const string ParameterConfigurationTreeParameterName = "ParameterConfigurationTree"; 43 43 public const string RepetitionsParameterName = "Repetitions"; 44 44 … … 58 58 get { return (ValueParameter<ConstrainedItemList<ISingleObjectiveProblem>>)Parameters[ProblemsParameterName]; } 59 59 } 60 public IValueParameter<ParameterConfigurationTree> ParameterConfiguration Parameter {61 get { return (ValueParameter<ParameterConfigurationTree>)Parameters[ParameterConfiguration ParameterName]; }60 public IValueParameter<ParameterConfigurationTree> ParameterConfigurationTreeParameter { 61 get { return (ValueParameter<ParameterConfigurationTree>)Parameters[ParameterConfigurationTreeParameterName]; } 62 62 } 63 63 public IValueParameter<IntValue> RepetitionsParameter { … … 87 87 set { ProblemsParameter.Value = value; } 88 88 } 89 public ParameterConfigurationTree AlgorithmParameterConfiguration{90 get { return ParameterConfiguration Parameter.Value; }91 set { ParameterConfiguration Parameter.Value = value; }89 public ParameterConfigurationTree ParameterConfigurationTree { 90 get { return ParameterConfigurationTreeParameter.Value; } 91 set { ParameterConfigurationTreeParameter.Value = value; } 92 92 } 93 93 public IntValue Repetitions { … … 101 101 Parameters.Add(new ValueParameter<ISingleObjectiveProblem>(ProblemTypeParameterName, "The problem type.", new SingleObjectiveTestFunctionProblem())); 102 102 Parameters.Add(new ValueParameter<ConstrainedItemList<ISingleObjectiveProblem>>(ProblemsParameterName, "The problems that should be evaluated.", new ConstrainedItemList<ISingleObjectiveProblem>())); 103 Parameters.Add(new ValueParameter<ParameterConfigurationTree>(ParameterConfiguration ParameterName, "List of algorithm parameters that should be optimized."));103 Parameters.Add(new ValueParameter<ParameterConfigurationTree>(ParameterConfigurationTreeParameterName, "List of algorithm parameters that should be optimized.")); 104 104 Parameters.Add(new ValueParameter<IntValue>(RepetitionsParameterName, "The number of evaluations for each problem.", new IntValue(3))); 105 105 … … 122 122 Problems.Type = Problem.GetType(); 123 123 Algorithm.Problem = Problem; 124 ParameterConfiguration Parameter.ActualValue = new ParameterConfigurationTree(Algorithm);124 ParameterConfigurationTreeParameter.ActualValue = new ParameterConfigurationTree(Algorithm); 125 125 } 126 126 … … 185 185 void AlgorithmTypeParameter_ValueChanged(object sender, EventArgs e) { 186 186 Algorithm.Problem = Problem; 187 ParameterConfiguration Parameter.ActualValue = new ParameterConfigurationTree(Algorithm);187 ParameterConfigurationTreeParameter.ActualValue = new ParameterConfigurationTree(Algorithm); 188 188 } 189 189 void ProblemTypeParameter_ValueChanged(object sender, EventArgs e) { 190 190 Problems.Type = Problem.GetType(); 191 191 Algorithm.Problem = Problem; 192 ParameterConfiguration Parameter.ActualValue = new ParameterConfigurationTree(Algorithm);192 ParameterConfigurationTreeParameter.ActualValue = new ParameterConfigurationTree(Algorithm); 193 193 } 194 194 #endregion
Note: See TracChangeset
for help on using the changeset viewer.