Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Algorithms.NSGA2/3.3/NSGA2.cs @ 4012

Last change on this file since 4012 was 4012, checked in by abeham, 14 years ago

#1040

  • Added empty plugin for NSGA-II
File size: 2.7 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using System;
23using HeuristicLab.Common;
24using HeuristicLab.Core;
25using HeuristicLab.Data;
26using HeuristicLab.Optimization;
27using HeuristicLab.Parameters;
28using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
29
30namespace HeuristicLab.Algorithms.NSGA2 {
31  /// <summary>
32  /// The Nondominated Sorting Genetic Algorithm II was introduced in Deb et al. 2002. A Fast and Elitist Multiobjective Genetic Algorithm: NSGA-II. IEEE Transactions on Evolutionary Computation, 6(2), pp. 182-197.
33  /// </summary>
34  [Item("NSGA2", "The Nondominated Sorting Genetic Algorithm II was introduced in Deb et al. 2002. A Fast and Elitist Multiobjective Genetic Algorithm: NSGA-II. IEEE Transactions on Evolutionary Computation, 6(2), pp. 182-197.")]
35  [Creatable("Algorithms")]
36  [StorableClass]
37  public class NSGA2 : EngineAlgorithm {
38    #region Problem Properties
39    public override Type ProblemType {
40      get { return typeof(IMultiObjectiveProblem); }
41    }
42    public new IMultiObjectiveProblem Problem {
43      get { return (IMultiObjectiveProblem)base.Problem; }
44      set { base.Problem = value; }
45    }
46    #endregion
47
48    #region Parameter Properties
49    private ValueLookupParameter<IntValue> PopulationSizeParameter {
50      get { return (ValueLookupParameter<IntValue>)Parameters["PopulationSize"]; }
51    }
52    #endregion
53
54    #region Properties
55    #endregion
56
57    [StorableConstructor]
58    public NSGA2(bool deserializing) : base(deserializing) { }
59    public NSGA2() {
60      // TODO: Add your parameters here
61      Parameters.Add(new ValueParameter<IntValue>("PopulationSize", "The population size of the algorithm.", new IntValue(100)));
62    }
63
64    public override IDeepCloneable Clone(Cloner cloner) {
65      NSGA2 clone = (NSGA2)base.Clone(cloner);
66      // TODO: Clone additional fields
67      return clone;
68    }
69  }
70}
Note: See TracBrowser for help on using the repository browser.