- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/BreederGeneticAlgorithmManipulator.cs
r4068 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 41 42 get { return (ValueLookupParameter<DoubleValue>)Parameters["SearchIntervalFactor"]; } 42 43 } 44 45 [StorableConstructor] 46 protected BreederGeneticAlgorithmManipulator(bool deserializing) : base(deserializing) { } 47 protected BreederGeneticAlgorithmManipulator(BreederGeneticAlgorithmManipulator original, Cloner cloner) : base(original, cloner) { } 43 48 /// <summary> 44 49 /// Initializes a new instance of <see cref="BreederGeneticAlgorithmManipulator"/> with two … … 48 53 : base() { 49 54 Parameters.Add(new ValueLookupParameter<DoubleValue>("SearchIntervalFactor", "The factor determining the size of the search interval, that will be added/removed to/from the allele selected for manipulation. E.g. a value of 0.1 means 10% of the range will be maximally added/removed.", new DoubleValue(0.1))); 55 } 56 57 public override IDeepCloneable Clone(Cloner cloner) { 58 return new BreederGeneticAlgorithmManipulator(this, cloner); 50 59 } 51 60 -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/MichalewiczNonUniformAllPositionsManipulator.cs
r4068 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 57 58 } 58 59 60 [StorableConstructor] 61 protected MichalewiczNonUniformAllPositionsManipulator(bool deserializing) : base(deserializing) { } 62 protected MichalewiczNonUniformAllPositionsManipulator(MichalewiczNonUniformAllPositionsManipulator original, Cloner cloner) : base(original, cloner) { } 59 63 /// <summary> 60 64 /// Initializes a new instance of <see cref="MichalewiczNonUniformAllPositionsManipulator"/> with three … … 66 70 Parameters.Add(new ValueLookupParameter<IntValue>("MaximumIterations", "Maximum number of iterations")); 67 71 Parameters.Add(new ValueLookupParameter<DoubleValue>("IterationDependency", "Specifies the degree of dependency on the number of iterations. A value of 0 means no dependency and the higher the value the stronger the progress towards maximum iterations will be taken into account by sampling closer around the current position. Value must be >= 0.", new DoubleValue(5))); 72 } 73 74 public override IDeepCloneable Clone(Cloner cloner) { 75 return new MichalewiczNonUniformAllPositionsManipulator(this, cloner); 68 76 } 69 77 -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/MichalewiczNonUniformOnePositionManipulator.cs
r4068 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 57 58 } 58 59 60 [StorableConstructor] 61 protected MichalewiczNonUniformOnePositionManipulator(bool deserializing) : base(deserializing) { } 62 protected MichalewiczNonUniformOnePositionManipulator(MichalewiczNonUniformOnePositionManipulator original, Cloner cloner) : base(original, cloner) { } 59 63 /// <summary> 60 64 /// Initializes a new instance of <see cref="MichalewiczNonUniformOnePositionManipulator"/> with three … … 66 70 Parameters.Add(new ValueLookupParameter<IntValue>("MaximumIterations", "Maximum number of iterations.")); 67 71 Parameters.Add(new ValueLookupParameter<DoubleValue>("IterationDependency", "Specifies the degree of dependency on the number of iterations. A value of 0 means no dependency and the higher the value the stronger the progress towards maximum iterations will be taken into account by sampling closer around the current position. Value must be >= 0.", new DoubleValue(5))); 72 } 73 74 public override IDeepCloneable Clone(Cloner cloner) { 75 return new MichalewiczNonUniformOnePositionManipulator(this, cloner); 68 76 } 69 77 -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/MultiRealVectorManipulator.cs
r3674 r4722 23 23 using System.Linq; 24 24 using HeuristicLab.Collections; 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; 26 27 using HeuristicLab.Data; … … 50 51 51 52 [StorableConstructor] 52 private MultiRealVectorManipulator(bool deserializing) : base(deserializing) { } 53 protected MultiRealVectorManipulator(bool deserializing) : base(deserializing) { } 54 protected MultiRealVectorManipulator(MultiRealVectorManipulator original, Cloner cloner) : base(original, cloner) { } 53 55 public MultiRealVectorManipulator() 54 56 : base() { … … 60 62 Operators.Add((IRealVectorManipulator)Activator.CreateInstance(type), true); 61 63 } 64 } 65 66 public override IDeepCloneable Clone(Cloner cloner) { 67 return new MultiRealVectorManipulator(this, cloner); 62 68 } 63 69 -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/NormalAllPositionsManipulator.cs
r4068 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Optimization; … … 52 53 get { return StrategyParameterParameter; } 53 54 } 55 56 [StorableConstructor] 57 protected NormalAllPositionsManipulator(bool deserializing) : base(deserializing) { } 58 protected NormalAllPositionsManipulator(NormalAllPositionsManipulator original, Cloner cloner) : base(original, cloner) { } 54 59 /// <summary> 55 60 /// Initializes a new instance of <see cref="NormalAllPositionsManipulator"/> with one … … 59 64 : base() { 60 65 Parameters.Add(new ValueLookupParameter<RealVector>("StrategyParameter", "The vector containing the endogenous strategy parameters.")); 66 } 67 68 public override IDeepCloneable Clone(Cloner cloner) { 69 return new NormalAllPositionsManipulator(this, cloner); 61 70 } 62 71 -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/PolynomialAllPositionManipulator.cs
r4068 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 54 55 } 55 56 57 [StorableConstructor] 58 protected PolynomialAllPositionManipulator(bool deserializing) : base(deserializing) { } 59 protected PolynomialAllPositionManipulator(PolynomialAllPositionManipulator original, Cloner cloner) : base(original, cloner) { } 56 60 /// <summary> 57 61 /// Initializes a new instance of <see cref="PolynomialAllPositionManipulator"/> with two parameters … … 62 66 Parameters.Add(new ValueLookupParameter<DoubleValue>("Contiguity", "Specifies whether the manipulation should produce far stretching (small value) or close (large value) manipulations with higher probability. Valid values must be greater or equal to 0.", new DoubleValue(2))); 63 67 Parameters.Add(new ValueLookupParameter<DoubleValue>("MaximumManipulation", "Specifies the maximum value that should be added or subtracted by the manipulation. If this value is set to 0 no mutation will be performed.", new DoubleValue(1))); 68 } 69 70 public override IDeepCloneable Clone(Cloner cloner) { 71 return new PolynomialAllPositionManipulator(this, cloner); 64 72 } 65 73 -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/PolynomialOnePositionManipulator.cs
r4068 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 53 54 } 54 55 56 [StorableConstructor] 57 protected PolynomialOnePositionManipulator(bool deserializing) : base(deserializing) { } 58 protected PolynomialOnePositionManipulator(PolynomialOnePositionManipulator original, Cloner cloner) : base(original, cloner) { } 55 59 /// <summary> 56 60 /// Initializes a new instance of <see cref="PolynomialOnePositionManipulator"/> with two parameters … … 61 65 Parameters.Add(new ValueLookupParameter<DoubleValue>("Contiguity", "Specifies whether the manipulation should produce far stretching (small value) or close (large value) manipulations with higher probability. Valid values must be greater or equal to 0.", new DoubleValue(2))); 62 66 Parameters.Add(new ValueLookupParameter<DoubleValue>("MaximumManipulation", "Specifies the maximum value that should be added or subtracted by the manipulation. If this value is set to 0 no mutation will be performed.", new DoubleValue(1))); 67 } 68 69 public override IDeepCloneable Clone(Cloner cloner) { 70 return new PolynomialOnePositionManipulator(this, cloner); 63 71 } 64 72 -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/UniformOnePositionManipulator.cs
r4068 r4722 21 21 22 22 using System; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; … … 35 36 [StorableClass] 36 37 public class UniformOnePositionManipulator : RealVectorManipulator { 38 [StorableConstructor] 39 protected UniformOnePositionManipulator(bool deserializing) : base(deserializing) { } 40 protected UniformOnePositionManipulator(UniformOnePositionManipulator original, Cloner cloner) : base(original, cloner) { } 41 public UniformOnePositionManipulator() : base() { } 42 43 public override IDeepCloneable Clone(Cloner cloner) { 44 return new UniformOnePositionManipulator(this, cloner); 45 } 46 37 47 /// <summary> 38 48 /// Changes randomly a single position in the given real <paramref name="vector"/>.
Note: See TracChangeset
for help on using the changeset viewer.