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 | |
---|
1 | using HeuristicLab.Common;
|
---|
2 | using HeuristicLab.Core;
|
---|
3 | using HeuristicLab.Encodings.RealVectorEncoding;
|
---|
4 | using HeuristicLab.Optimization;
|
---|
5 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
6 |
|
---|
7 | namespace 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.