- Timestamp:
- 03/22/10 17:03:29 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/BreederGeneticAlgorithmManipulator.cs
r3123 r3182 38 38 public class BreederGeneticAlgorithmManipulator : RealVectorManipulator { 39 39 private static readonly double[] powerOfTwo = new double[] { 1, 0.5, 0.25, 0.125, 0.0625, 0.03125, 0.015625, 0.0078125, 0.00390625, 0.001953125, 0.0009765625, 0.00048828125, 0.000244140625, 0.0001220703125, 0.00006103515625, 0.000030517578125 }; 40 public ValueLookupParameter<DoubleMatrix> BoundsParameter {41 get { return (ValueLookupParameter<DoubleMatrix>)Parameters["Bounds"]; }42 }43 40 public ValueLookupParameter<DoubleValue> SearchIntervalFactorParameter { 44 41 get { return (ValueLookupParameter<DoubleValue>)Parameters["SearchIntervalFactor"]; } … … 50 47 public BreederGeneticAlgorithmManipulator() 51 48 : base() { 52 Parameters.Add(new ValueLookupParameter<DoubleMatrix>("Bounds", "The lower and upper bounds for each element in the vector.")); 53 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.", new DoubleValue(0.1))); 49 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))); 54 50 } 55 51 -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/MichalewiczNonUniformAllPositionsManipulator.cs
r3172 r3182 38 38 public class MichalewiczNonUniformAllPositionsManipulator : RealVectorManipulator { 39 39 /// <summary> 40 /// The lower and upper bound (1st and 2nd column) of the positions in the vector. If there are less rows than dimensions, the rows are cycled.41 /// </summary>42 public ValueLookupParameter<DoubleMatrix> BoundsParameter {43 get { return (ValueLookupParameter<DoubleMatrix>)Parameters["Bounds"]; }44 }45 /// <summary>46 40 /// The current generation. 47 41 /// </summary> … … 69 63 public MichalewiczNonUniformAllPositionsManipulator() 70 64 : base() { 71 Parameters.Add(new ValueLookupParameter<DoubleMatrix>("Bounds", "The lower and upper bound (1st and 2nd column) of the positions in the vector. If there are less rows than dimensions, the rows are cycled."));72 65 Parameters.Add(new LookupParameter<IntValue>("Generation", "Current generation of the algorithm")); 73 66 Parameters.Add(new LookupParameter<IntValue>("MaximumGenerations", "Maximum number of generations")); -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/MichalewiczNonUniformOnePositionManipulator.cs
r3123 r3182 38 38 public class MichalewiczNonUniformOnePositionManipulator : RealVectorManipulator { 39 39 /// <summary> 40 /// The lower and upper bound (1st and 2nd column) of the positions in the vector. If there are less rows than dimensions, the rows are cycled.41 /// </summary>42 public ValueLookupParameter<DoubleMatrix> BoundsParameter {43 get { return (ValueLookupParameter<DoubleMatrix>)Parameters["Bounds"]; }44 }45 /// <summary>46 40 /// The current generation. 47 41 /// </summary> … … 69 63 public MichalewiczNonUniformOnePositionManipulator() 70 64 : base() { 71 Parameters.Add(new ValueLookupParameter<DoubleMatrix>("Bounds", "The lower and upper bound (1st and 2nd column) of the positions in the vector. If there are less rows than dimensions, the rows are cycled."));72 65 Parameters.Add(new LookupParameter<IntValue>("Generation", "Current generation of the algorithm")); 73 66 Parameters.Add(new LookupParameter<IntValue>("MaximumGenerations", "Maximum number of generations")); -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/UniformOnePositionManipulator.cs
r3123 r3182 37 37 public class UniformOnePositionManipulator : RealVectorManipulator { 38 38 /// <summary> 39 /// The bounds of the values in the real vector.40 /// </summary>41 public ValueLookupParameter<DoubleMatrix> BoundsParameter {42 get { return (ValueLookupParameter<DoubleMatrix>)Parameters["Bounds"]; }43 }44 45 /// <summary>46 /// Initializes a new instance of <see cref="UniformOnePositionManipulator"/> with one parameter47 /// (<c>Bounds</c>).48 /// </summary>49 public UniformOnePositionManipulator() {50 Parameters.Add(new ValueLookupParameter<DoubleMatrix>("Bounds", "Lower and upper bound of the positions in the vector."));51 }52 53 /// <summary>54 39 /// Changes randomly a single position in the given real <paramref name="vector"/>. 55 40 /// </summary>
Note: See TracChangeset
for help on using the changeset viewer.