Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization/3.3/VariegationProblem.cs @ 14604

Last change on this file since 14604 was 14604, checked in by jkarder, 7 years ago

#2205: worked on optimization networks

  • updated ttp networks (1, 2, 3)
  • added lrp network (1)
  • fixed plugin dependencies
File size: 1.2 KB
Line 
1using HeuristicLab.Common;
2using HeuristicLab.Core;
3using HeuristicLab.Encodings.RealVectorEncoding;
4using HeuristicLab.Optimization;
5using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
6
7namespace HeuristicLab.Networks.IntegratedOptimization {
8  [Item("Variegation Problem", "Represents a problem whose objective is to optimize problem parameters.")]
9  [Creatable(CreatableAttribute.Categories.Problems, Priority = 999)]
10  [StorableClass]
11  public class VariegationProblem : SingleObjectiveBasicProblem<RealVectorEncoding> {
12    private bool maximization;
13    public override bool Maximization {
14      get { return maximization; }
15    }
16
17    public void SetMaximization(bool value) {
18      maximization = value;
19    }
20
21    [StorableConstructor]
22    protected VariegationProblem(bool deserializing) : base(deserializing) { }
23    protected VariegationProblem(VariegationProblem original, Cloner cloner) : base(original, cloner) { }
24    public VariegationProblem() : base() {
25      Encoding.Length = 5;
26    }
27
28    public override IDeepCloneable Clone(Cloner cloner) {
29      return new VariegationProblem(this, cloner);
30    }
31
32    public override double Evaluate(Individual individual, IRandom random) { return 0.0; }
33  }
34}
Note: See TracBrowser for help on using the repository browser.