Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/22/10 17:03:29 (14 years ago)
Author:
abeham
Message:

Updated real vector to check bounds after each crossover and manipulation #890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/BreederGeneticAlgorithmManipulator.cs

    r3123 r3182  
    3838  public class BreederGeneticAlgorithmManipulator : RealVectorManipulator {
    3939    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     }
    4340    public ValueLookupParameter<DoubleValue> SearchIntervalFactorParameter {
    4441      get { return (ValueLookupParameter<DoubleValue>)Parameters["SearchIntervalFactor"]; }
     
    5047    public BreederGeneticAlgorithmManipulator()
    5148      : 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)));
    5450    }
    5551
Note: See TracChangeset for help on using the changeset viewer.