Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/AlgorithmProblemItem.cs @ 11193

Last change on this file since 11193 was 5665, checked in by cneumuel, 14 years ago

#1215

  • implemented optimization of problem parameters
File size: 1.2 KB
Line 
1using HeuristicLab.Common;
2using HeuristicLab.Core;
3using HeuristicLab.Optimization;
4using HeuristicLab.Parameters;
5using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
6
7namespace HeuristicLab.Problems.MetaOptimization {
8  [StorableClass]
9  public class AlgorithmProblemItem : ParameterizedNamedItem {
10    #region Parameter Properties
11    public IValueParameter<IAlgorithm> AlgorithmParameter {
12      get { return (ValueParameter<IAlgorithm>)Parameters["Algorithm"]; }
13    }
14    public IValueParameter<IProblem> ProblemParameter {
15      get { return (ValueParameter<IProblem>)Parameters["Problem"]; }
16    }
17    #endregion
18
19    #region Constructors and Cloning
20    [StorableConstructor]
21    protected AlgorithmProblemItem(bool deserializing) : base(deserializing) { }
22    public AlgorithmProblemItem() {
23      this.Parameters.Add(new ValueParameter<IAlgorithm>("Algorithm"));
24      this.Parameters.Add(new ValueParameter<IProblem>("Problem"));
25    }
26    protected AlgorithmProblemItem(AlgorithmProblemItem original, Cloner cloner)
27      : base(original, cloner) {
28    }
29    public override IDeepCloneable Clone(Cloner cloner) {
30      return new AlgorithmProblemItem(this, cloner);
31    }
32    #endregion
33  }
34}
Note: See TracBrowser for help on using the repository browser.