Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/21/10 01:13:49 (14 years ago)
Author:
cneumuel
Message:

#1215

  • added possibility to create all parameter combinations from a ParameterConfigurationTree and generate an experiment from them
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/MetaOptimizationProblem.cs

    r5111 r5144  
    4040    public const string ProblemTypeParameterName = "ProblemType";
    4141    public const string ProblemsParameterName = "Problems";
    42     public const string ParameterConfigurationParameterName = "InitialParameterConfigurationTree";
     42    public const string ParameterConfigurationTreeParameterName = "ParameterConfigurationTree";
    4343    public const string RepetitionsParameterName = "Repetitions";
    4444
     
    5858      get { return (ValueParameter<ConstrainedItemList<ISingleObjectiveProblem>>)Parameters[ProblemsParameterName]; }
    5959    }
    60     public IValueParameter<ParameterConfigurationTree> ParameterConfigurationParameter {
    61       get { return (ValueParameter<ParameterConfigurationTree>)Parameters[ParameterConfigurationParameterName]; }
     60    public IValueParameter<ParameterConfigurationTree> ParameterConfigurationTreeParameter {
     61      get { return (ValueParameter<ParameterConfigurationTree>)Parameters[ParameterConfigurationTreeParameterName]; }
    6262    }
    6363    public IValueParameter<IntValue> RepetitionsParameter {
     
    8787      set { ProblemsParameter.Value = value; }
    8888    }
    89     public ParameterConfigurationTree AlgorithmParameterConfiguration {
    90       get { return ParameterConfigurationParameter.Value; }
    91       set { ParameterConfigurationParameter.Value = value; }
     89    public ParameterConfigurationTree ParameterConfigurationTree {
     90      get { return ParameterConfigurationTreeParameter.Value; }
     91      set { ParameterConfigurationTreeParameter.Value = value; }
    9292    }
    9393    public IntValue Repetitions {
     
    101101      Parameters.Add(new ValueParameter<ISingleObjectiveProblem>(ProblemTypeParameterName, "The problem type.", new SingleObjectiveTestFunctionProblem()));
    102102      Parameters.Add(new ValueParameter<ConstrainedItemList<ISingleObjectiveProblem>>(ProblemsParameterName, "The problems that should be evaluated.", new ConstrainedItemList<ISingleObjectiveProblem>()));
    103       Parameters.Add(new ValueParameter<ParameterConfigurationTree>(ParameterConfigurationParameterName, "List of algorithm parameters that should be optimized."));
     103      Parameters.Add(new ValueParameter<ParameterConfigurationTree>(ParameterConfigurationTreeParameterName, "List of algorithm parameters that should be optimized."));
    104104      Parameters.Add(new ValueParameter<IntValue>(RepetitionsParameterName, "The number of evaluations for each problem.", new IntValue(3)));
    105105
     
    122122      Problems.Type = Problem.GetType();
    123123      Algorithm.Problem = Problem;
    124       ParameterConfigurationParameter.ActualValue = new ParameterConfigurationTree(Algorithm);
     124      ParameterConfigurationTreeParameter.ActualValue = new ParameterConfigurationTree(Algorithm);
    125125    }
    126126
     
    185185    void AlgorithmTypeParameter_ValueChanged(object sender, EventArgs e) {
    186186      Algorithm.Problem = Problem;
    187       ParameterConfigurationParameter.ActualValue = new ParameterConfigurationTree(Algorithm);
     187      ParameterConfigurationTreeParameter.ActualValue = new ParameterConfigurationTree(Algorithm);
    188188    }
    189189    void ProblemTypeParameter_ValueChanged(object sender, EventArgs e) {
    190190      Problems.Type = Problem.GetType();
    191191      Algorithm.Problem = Problem;
    192       ParameterConfigurationParameter.ActualValue = new ParameterConfigurationTree(Algorithm);
     192      ParameterConfigurationTreeParameter.ActualValue = new ParameterConfigurationTree(Algorithm);
    193193    }
    194194    #endregion
Note: See TracChangeset for help on using the changeset viewer.