Last change
on this file since 17104 was
16996,
checked in by gkronber, 6 years ago
|
#2520 Update plugin dependencies and references for HL.MetaOptimization for new persistence
|
File size:
1.3 KB
|
Line | |
---|
1 | using HeuristicLab.Common;
|
---|
2 | using HeuristicLab.Core;
|
---|
3 | using HEAL.Attic;
|
---|
4 |
|
---|
5 | namespace HeuristicLab.Problems.MetaOptimization {
|
---|
6 | // todo: item name/descr...
|
---|
7 | [StorableType("71AA1D18-73D0-4ADA-A0EF-DB94ED6A94D3")]
|
---|
8 | public class ParameterConfigurationAllPositionsManipulator : ParameterConfigurationManipulator {
|
---|
9 |
|
---|
10 | public ParameterConfigurationAllPositionsManipulator() { }
|
---|
11 | [StorableConstructor]
|
---|
12 | protected ParameterConfigurationAllPositionsManipulator(StorableConstructorFlag _) : base(_) { }
|
---|
13 | protected ParameterConfigurationAllPositionsManipulator(ParameterConfigurationAllPositionsManipulator original, Cloner cloner)
|
---|
14 | : base(original, cloner) {
|
---|
15 | }
|
---|
16 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
17 | return new ParameterConfigurationAllPositionsManipulator(this, cloner);
|
---|
18 | }
|
---|
19 |
|
---|
20 | public sealed override IOperation Apply() {
|
---|
21 | Apply(RandomParameter.ActualValue, ParameterConfigurationTreeParameter.ActualValue, IntValueManipulatorParameter.ActualValue, DoubleValueManipulatorParameter.ActualValue);
|
---|
22 | return base.Apply();
|
---|
23 | }
|
---|
24 |
|
---|
25 | public static new void Apply(IRandom random, IValueConfiguration configuration, IIntValueManipulator intValueManipulator, IDoubleValueManipulator doubleValueManipulator) {
|
---|
26 | configuration.Mutate(random, Mutate, intValueManipulator, doubleValueManipulator);
|
---|
27 | }
|
---|
28 | }
|
---|
29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.