Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/01/11 16:38:39 (13 years ago)
Author:
mkofler
Message:

#852: PSO code refactoring. Fixed wiring in main loop (Analyzer was not in loop) and fixed small issue in RealVectorSwarmUpdater.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/ParticleOperators/RealVectorSwarmUpdater.cs

    r5568 r5581  
    206206        }
    207207        for (int i = 0; i < RealVector.Length; i++) {
    208           if (Maximization && PersonalBestQuality[i].Value > NeighborBestQuality[i].Value ||
    209              !Maximization && PersonalBestQuality[i].Value < NeighborBestQuality[i].Value) {
     208          if (Maximization && PersonalBestQuality[i].Value > neighborBestQuality[i].Value ||
     209             !Maximization && PersonalBestQuality[i].Value < neighborBestQuality[i].Value) {
    210210            neighborBestQuality[i].Value = PersonalBestQuality[i].Value;
    211211            neighborBest[i] = PersonalBest[i];
Note: See TracChangeset for help on using the changeset viewer.