Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/17/19 22:56:09 (6 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/Analyzers/BestMovingPeaksBenchmarkSolutionAnalyzer.cs

    r16611 r16613  
    102102      else i = qualities.Select((x, index) => new { index, x.Value }).OrderByDescending(x => x.Value).First().index;
    103103
    104       if (bestKnownQuality == null ||
    105           max && qualities[i].Value > bestKnownQuality.Value
    106           || !max && qualities[i].Value < bestKnownQuality.Value) {
    107         BestKnownQualityParameter.ActualValue = new DoubleValue(qualities[i].Value);
    108         BestKnownSolutionParameter.ActualValue = (RealVector)realVectors[i].Clone();
    109       }
    110 
    111104      RealVector best = (RealVector)realVectors[i].Clone();
    112105      RealVector bestKnown = (RealVector)BestKnownSolutionParameter.ActualValue.Clone();
Note: See TracChangeset for help on using the changeset viewer.