Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/17/19 22:56:09 (5 years ago)
Author:
swagner
Message:

#2989: Moving Peaks Benchmark

  • fixed updates of best known quality
  • added bounds for peak movement
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2989_MovingPeaksBenchmark/HeuristicLab.Problems.MovingPeaksBenchmark/3.3/MovingPeaksBenchmarkProblem.cs

    r16609 r16613  
    7171      get { return (FixedValueParameter<IntValue>)Parameters["MovingPeaksRandomSeed"]; }
    7272    }
     73    public FixedValueParameter<DoubleValue> MinPeakWidthParameter {
     74      get { return (FixedValueParameter<DoubleValue>)Parameters["MinPeakWidth"]; }
     75    }
     76    public FixedValueParameter<DoubleValue> MaxPeakWidthParameter {
     77      get { return (FixedValueParameter<DoubleValue>)Parameters["MaxPeakWidth"]; }
     78    }
     79    public FixedValueParameter<DoubleValue> MinPeakHeightParameter {
     80      get { return (FixedValueParameter<DoubleValue>)Parameters["MinPeakHeight"]; }
     81    }
     82    public FixedValueParameter<DoubleValue> MaxPeakHeightParameter {
     83      get { return (FixedValueParameter<DoubleValue>)Parameters["MaxPeakHeight"]; }
     84    }
    7385    public FixedValueParameter<IntValue> PeakMovementIntervalParameter {
    7486      get { return (FixedValueParameter<IntValue>)Parameters["PeakMovementInterval"]; }
     
    109121    public IntValue MovingPeaksRandomSeed {
    110122      get { return MovingPeaksRandomSeedParameter.Value; }
     123    }
     124    public DoubleValue MinPeakWidth {
     125      get { return MinPeakWidthParameter.Value; }
     126    }
     127    public DoubleValue MaxPeakWidth {
     128      get { return MaxPeakWidthParameter.Value; }
     129    }
     130    public DoubleValue MinPeakHeight {
     131      get { return MinPeakHeightParameter.Value; }
     132    }
     133    public DoubleValue MaxPeakHeight {
     134      get { return MaxPeakHeightParameter.Value; }
    111135    }
    112136    public IntValue PeakMovementInterval {
     
    140164        { 09.0, 19.0, 27.0, 67.0, 24.0 },
    141165        { 66.0, 87.0, 65.0, 19.0, 43.0 },
    142         { 76.0, 32.0, 43.0, 54.0, 65.0 }
     166        { 76.0, 32.0, 43.0, 54.0, 65.0 },
     167        { 25.0, 51.0, 17.0, 25.0, 16.0 },
     168        { 19.0, 93.0, 06.0, 35.0, 15.0 },
     169        { 88.0, 44.0, 37.0, 77.0, 74.0 },
     170        { 37.0, 74.0, 55.0, 09.0, 53.0 },
     171        { 42.0, 22.0, 93.0, 84.0, 35.0 }
    143172      };
    144       var defaultWidths = new double[] { 0.1, 0.1, 0.1, 0.1, 0.1 };
    145       var defaultHeights = new double[] { 50.0, 50.0, 50.0, 50.0, 50.0 };
     173      var defaultWidths = new double[] { -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0, -1.0 };
     174      var defaultHeights = new double[] { 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0, 50.0 };
    146175      var defaultBestKnown = new double[] { 08.0, 64.0, 67.0, 55.0, 04.0 };
    147176
    148177      Parameters.Add(new ValueParameter<DoubleMatrix>("Bounds", "The lower and upper bounds in each dimension.", new DoubleMatrix(defaultBounds)));
    149178      Parameters.Add(new ValueParameter<IntValue>("ProblemSize", "The dimension of the problem.", new IntValue(5)));
    150       Parameters.Add(new ValueParameter<IntValue>("Peaks", "The number of peaks.", new IntValue(5)));
     179      Parameters.Add(new ValueParameter<IntValue>("Peaks", "The number of peaks.", new IntValue(10)));
    151180      Parameters.Add(new ValueParameter<DoubleMatrix>("InitialPeakLocations", "Initial coordinates of each peaks.", new DoubleMatrix(defaultPeaks)));
    152181      Parameters.Add(new ValueParameter<DoubleArray>("InitialPeakWidths", "Initial width of each peak.", new DoubleArray(defaultWidths)));
    153182      Parameters.Add(new ValueParameter<DoubleArray>("InitialPeakHeights", "Initial height of each peak.", new DoubleArray(defaultHeights)));
    154183      Parameters.Add(new FixedValueParameter<IntValue>("MovingPeaksRandomSeed", "The random seed for initializing the PRNG for changing the peaks.", new IntValue(666)));
    155       Parameters.Add(new FixedValueParameter<IntValue>("PeakMovementInterval", "The interval in evaluated solutions in which peaks are moved.", new IntValue(1000)));
    156       Parameters.Add(new FixedValueParameter<DoubleValue>("PeakMovementStrength", "The length of the random vector used for changing peak locations.", new DoubleValue(1.0)));
     184      Parameters.Add(new FixedValueParameter<DoubleValue>("MinPeakWidth", "The minimum width of each peak.", new DoubleValue(1.0)));
     185      Parameters.Add(new FixedValueParameter<DoubleValue>("MaxPeakWidth", "The maximum width of each peak.", new DoubleValue(12.0)));
     186      Parameters.Add(new FixedValueParameter<DoubleValue>("MinPeakHeight", "The minimum height of each peak.", new DoubleValue(30.0)));
     187      Parameters.Add(new FixedValueParameter<DoubleValue>("MaxPeakHeight", "The maximum height of each peak.", new DoubleValue(70.0)));
     188      Parameters.Add(new FixedValueParameter<IntValue>("PeakMovementInterval", "The interval in evaluated solutions in which peaks are moved.", new IntValue(5000)));
     189      Parameters.Add(new FixedValueParameter<DoubleValue>("PeakMovementStrength", "The length of the random vector used for changing peak locations.", new DoubleValue(1.5)));
    157190      Parameters.Add(new OptionalValueParameter<RealVector>("BestKnownSolution", "The location of the highest peak.", new RealVector(defaultBestKnown)));
    158191
Note: See TracChangeset for help on using the changeset viewer.